RetinaFace-tf2
RetinaFace-tf2 copied to clipboard
"Failed to interpret file './data/retinafaceweights.npy' as a pickle" => requirements.txt is not complete for reproducibility
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
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 ?