Skip to content

Conversation

@mogoweb
Copy link

@mogoweb mogoweb commented May 17, 2019

when numpy version is 1.16.2, it will raise the following error:
Traceback (most recent call last): File "classify_nsfw.py", line 69, in <module> main(sys.argv) File "classify_nsfw.py", line 44, in main model.build(weights_path=args.model_weights, input_type=input_type) File "/home/alex/work/ai/tensorflow/projects/tensorflow-open_nsfw/model.py", line 30, in build self.weights = np.load(weights_path, encoding="latin1").item() File "/home/alex/anaconda3/envs/tensorflow-gpu/lib/python3.6/site-packages/numpy/lib/npyio.py", line 447, in load pickle_kwargs=pickle_kwargs) File "/home/alex/anaconda3/envs/tensorflow-gpu/lib/python3.6/site-packages/numpy/lib/format.py", line 692, in read_array raise ValueError("Object arrays cannot be loaded when " ValueError: Object arrays cannot be loaded when allow_pickle=False

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant