Skip to content

fixes failure when numpy version is 1.16.2. #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

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