deepinsight / deepinsight/insightface
Using the model arcface_r100_v1 and command get_embedding raises AttributeError: 'NoneType' object has no attribute 'shape'
- Dominant language
- Python
- Stars
- 29.7k
- Forks
- 6.1k
- PR merge metrics
- No merged PRs in 30d
Description
So I'm using the pre-trained model arcface_r100_v1 and img='https://drive.google.com/open?id=16PKySktkjj3579S1F9a9mmCmMRm1fH8u', I get the error AttributeError: 'NoneType' object has no attribute 'shape'
I am using the python 2.7 insightface package.
Here is the log:
Traceback (most recent call last):
File "FaceRecognitionTest.py", line 55, in
emb2 = model.get_embedding(img2)
File "/usr/local/lib/python2.7/dist-packages/insightface/model_zoo/face_recognition.py", line 48, in get_embedding
assert img.shape[2]==3 and img.shape[0:2]==self.image_size
AttributeError: 'NoneType' object has no attribute 'shape'
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.