vggface_bug2.png1247×207 34.4 KB

As the pictures show, I used pytorch to load vgg_face. But it appeared error.
I switch a package to load vggface. It can handle t7 format file. But it aslo did’t wrok.
The error message is as follows:
Traceback (most recent call last):
File “”, line 1, in 
File “C:\Users\qu199\AppData\Local\Programs\Python\Python37\lib\site-packages\torchfile.py”, line 424, in load
return reader.read_obj()
File “C:\Users\qu199\AppData\Local\Programs\Python\Python37\lib\site-packages\torchfile.py”, line 370, in read_obj
obj._obj = self.read_obj()
File “C:\Users\qu199\AppData\Local\Programs\Python\Python37\lib\site-packages\torchfile.py”, line 387, in read_obj
obj[k] = v
TypeError: unhashable type: ‘numpy.ndarray’
I download the vggface file from the website https://www.robots.ox.ac.uk/~vgg/software/vgg_face/ 3 .
I wonder if the version of pytorch lead to the bugs. I am use the latest edition.
Can someone help me ?