Skip to content

Seems like there needs to be some lines to be changed #5

Description

@ooodragon94
File "/*/CURL/ImageNet/released_model/pruned_model.py", line 76, in __init__         
    index_list = list(np.load('index.npy'))                                                 
  File "/opt/conda/lib/python3.8/site-packages/numpy/lib/npyio.py", line 439, in load             
    return format.read_array(fid, allow_pickle=allow_pickle,                                      
  File "/opt/conda/lib/python3.8/site-packages/numpy/lib/format.py", line 727, in read_array     
    raise ValueError("Object arrays cannot be loaded when "                               
ValueError: Object arrays cannot be loaded when allow_pickle=False 

so setting line 76 of pruned_model.py to

index_list = list(np.load('index.npy', allow_pickle=True))
did the work.
Not sure if it is safe to do this though

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions