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

"Failed to interpret file './data/retinafaceweights.npy' as a pickle" => requirements.txt is not complete for reproducibility #28

Open
GrigoriiTarasov opened this issue Aug 1, 2023 · 1 comment

Comments

@GrigoriiTarasov
Copy link

GrigoriiTarasov commented Aug 1, 2023

faces, landmarks = detector.detect(img, 0.9)

/RetinaFace-tf2/src/retinafacetf2/networks/network_utils.py in load_weights(weight_file)
---> 16         weights_dict = np.load(weight_file, allow_pickle=True, encoding='bytes').item()
OSError: Failed to interpret file './data/retinafaceweights.npy' as a pickle
os.path.exists('./data/retinafaceweights.npy')
True

both in 1.19 numpy and 1.22 numpy

@StanislasBertrand
Copy link
Owner

Thanks, I havent ran this code in a while, do you have a working numpy version (compatible with tf2.4.0) that i could add to the requirements ?

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

2 participants