jhb86253817 / PIPNet

Efficient facial landmark detector
MIT License
412 stars 82 forks source link

relative import error #26

Closed wwdok closed 2 years ago

wwdok commented 2 years ago

image

jhb86253817 commented 2 years ago

Hi, have you run FaceBoxesV2/utils/mask.sh to build for nms?

wwdok commented 2 years ago

No... Then i run FaceBoxesV2/utils/make.sh, but i find in WIndows, it can not recoginze python3, so i change it to python, continuely, it report an error: image so i comment out the extra compile args: image

rebuild it, this time it seems successful: image Then i rerun python lib/demo.py experiments/WFLW/pip_32_16_60_r18_l2_l1_10_1_nb10.py images/1.jpg, it report another error: image

jhb86253817 commented 2 years ago

You may refer to the following issue: https://github.com/jhb86253817/PIPNet/issues/15#issue-1121603944

wwdok commented 2 years ago

Great, i finnally get the result ! I think the key point is change the line 25 of cpu_nms.pyx to: cdef np.ndarray[np.int_t, ndim=1] order = scores.argsort()[::-1].astype('int32'), because in build.py I uncommented the line 46 and commented the line 47, this give me warning when rebuild(before rerun python build.py build_ext --inplace, delete build folder and nms/cpu_nms.c and nms/cpu_nms.cp38-win_amd64.pyd): image But this does not impact the final result.