facenet-pytorch-glint360k icon indicating copy to clipboard operation
facenet-pytorch-glint360k copied to clipboard

torch.load pre-trained model error

Open 2017234312 opened this issue 5 years ago • 1 comments

hello, thank you for your contribution. i download your weight file and load it to check the performance on LFW , while load the pt file according to your description, the error "_pickle.UnpicklingError: A load persistent id instruction was encountered, but no persistent_load function was specified." occurred. the pickle and save operation for your weight file maybe error???

2017234312 avatar Sep 21 '20 15:09 2017234312

Hello 2017234312,

I have managed to recreate this issue by using a Python 2.7 conda environment. I'm afraid you would have to use Python 3.6+ in order to use PyTorch 1.6. I have also updated the README on importing the required files in a more correct way.

I hope this was helpful, please inform me if other issues arise.

tamerthamoqa avatar Sep 22 '20 07:09 tamerthamoqa