Skip to content
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

Error while executing the code #18

Open
chakravarthi96 opened this issue Nov 19, 2019 · 5 comments
Open

Error while executing the code #18

chakravarthi96 opened this issue Nov 19, 2019 · 5 comments

Comments

@chakravarthi96
Copy link

File "start.py", line 176, in
main()
File "start.py", line 41, in main
pnet, rnet, onet = detect_face.create_mtcnn(sess, os.path.join(project_dir, "align"))
File ".\align\detect_face.py", line 290, in create_mtcnn
pnet.load(os.path.join(model_path, 'det1.npy'), sess)
File ".\align\detect_face.py", line 88, in load
data_dict = np.load(data_path, encoding='latin1').item()
File "conda\envs\skellam\lib\site-packages\numpy\lib\npyio.py", line 453, in load
pickle_kwargs=pickle_kwargs)
File ".conda\envs\skellam\lib\site-packages\numpy\lib\format.py", line 722, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

@Linzaer
Copy link
Owner

Linzaer commented Nov 22, 2019

Try to roll back the version of numpy, such as version 1.16.2.

@ly1112
Copy link

ly1112 commented Jan 29, 2020

same problem

@Atul-Anand-Jha
Copy link

uninstall scikit-learn. uninstall numpy. install numpy==1.16.2. re-install scikitlearn. BANG !

@SabraHashemi
Copy link

uninstall scikit-learn. uninstall numpy. install numpy==1.16.2. re-install scikitlearn. BANG !

it worked, thank you

@SabraHashemi
Copy link

another way to solve this :
data_dict = np.load(data_path, encoding='latin1').item()

should change to
data_dict = np.load(data_path, encoding='latin1', allow_pickle=True).item()

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

No branches or pull requests

5 participants