TreB1eN / InsightFace_Pytorch

Pytorch0.4.1 codes for InsightFace
MIT License
1.74k stars 423 forks source link

if some faces in facebank not appear in video #117

Open jzf1995 opened 4 years ago

jzf1995 commented 4 years ago

Thank you very much for the job. Now i have a question, that's if facebank contains some faces that not appear in the inference video, that's to say i want to find out the faces which appear in the videos, can the code still work? I had a try but some mistake occured like following. if i want to solve this problem, how can i change the codes?

File "/media/luminous/6400d1cb-edcd-4607-817b-1b69856b6144/jzf/InsightFace_Pytorch-master/mtcnn.py", line 92, in detect_faces keep = nms(bounding_boxes[:, 0:5], nms_thresholds[0]) TypeError: 'NoneType' object is not subscriptable

Ehtasha commented 4 years ago

Hello @jzf1995

We are also facing this problem.

Did you resolve this ?