RetinaFace-tf2 icon indicating copy to clipboard operation
RetinaFace-tf2 copied to clipboard

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

Open GrigoriiTarasov opened this issue 2 years ago • 1 comments

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

GrigoriiTarasov avatar Aug 01 '23 12:08 GrigoriiTarasov

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 ?

StanislasBertrand avatar Aug 01 '23 12:08 StanislasBertrand