deepinsight / insightface

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

SCRFD model throw error when run on image with shape (300, 300) #1578

Closed huytuong010101 closed 3 years ago

huytuong010101 commented 3 years ago

Thank u for you repository very useful I 'am trying to run face detection with SCRFD , it work very well on (640, 640) image But i get this error when run with another image shape (300, 300)

File "D:\FTechAI\fid-face\SCRFD.py", line 101, in distance2bbox
    x1 = points[:, 0] - distance[:, 0]
ValueError: operands could not be broadcast together with shapes (2738,) (2888,)

I run it via scrfd.py after convert model to onnx Do i need do something to run this model on another image shape?

nttstar commented 3 years ago

make sure H&W can be divided by 32

huytuong010101 commented 3 years ago

make sure H&W can be divided by 32

yessssssssss it work for me, thank u so much