choyingw / SynergyNet

3DV 2021: Synergy between 3DMM and 3D Landmarks for Accurate 3D Facial Geometry
MIT License
382 stars 57 forks source link

Nms variable dtype mismatch #15

Closed TFisichella closed 2 months ago

TFisichella commented 2 years ago

Hi,

I installed the project without issues, I just had to comment line 49 in FaceBoxes/utils/build.py for Cython to compile but when I run python.exe singleImage.py -f demo\0.png

I get this issue :

Process the image: demo\0.png Traceback (most recent call last): File "...\SynergyNet\singleImage.py", line 129, in main(args) File "...\SynergyNet\singleImage.py", line 60, in main rects = face_boxes(img_ori) File "...\SynergyNet\FaceBoxes\FaceBoxes.py", line 120, in call keep = nms(dets, nms_threshold) File "...\SynergyNet\FaceBoxes\utils\nms_wrapper.py", line 18, in nms return cpu_nms(dets, thresh) File "nms\cpu_nms.pyx", line 25, in nms.cpu_nms.cpu_nms ValueError: Buffer dtype mismatch, expected 'int_t' but got 'long long'

Do you know by any chance, how I can fix this ?

Thank you very much

Jiooum102 commented 1 year ago

@TFisichella I found a related issue here. Hope it could help.