deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
23.41k stars 5.41k forks source link

[Alightment/coordinateReg] AttributeError: 'NoneType' object has no attribute 'prepare' #1604

Open nhatduy19599 opened 3 years ago

nhatduy19599 commented 3 years ago

I have a problem running the file 'image_infer.py'

Error: PS E:\DataTraining\insightface-master\insightface-master> & "C:/Program Files/Python36/python.exe" e:/DataTraining/insightface-master/insightface-master/alignment/coordinateReg/image_infer.py loading ./model/2d106det 0 Traceback (most recent call last): File "e:/DataTraining/insightface-master/insightface-master/alignment/coordinateReg/image_infer.py", line 149, in handler = Handler('./model/2d106det', 0, ctx_id=7, det_size=640) File "e:/DataTraining/insightface-master/insightface-master/alignment/coordinateReg/image_infer.py", line 88, in init self.detector.prepare(ctx_id=ctx_id) AttributeError: 'NoneType' object has no attribute 'prepare'

I have downloaded the model and put it in the correct link , What is the problem I am facing and what do I need to do to fix it. thanks.

cia1099 commented 3 years ago

I have the same problem too

WYao02 commented 3 years ago

I have the same problem too

nadaboulares commented 3 years ago

I need a guide to make recognition work any help plz

On Sun, 4 Jul 2021, 16:55 WangYaoNUIG, @.***> wrote:

I have the same problem too

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/deepinsight/insightface/issues/1604#issuecomment-873615999, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYC4LYBOMV4FSRRIQ2XWYLTWB76XANCNFSM47FNGQ2Q .