Closed wwdok closed 2 years ago
Hi, have you run FaceBoxesV2/utils/mask.sh to build for nms?
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: so i comment out the extra compile args:
rebuild it, this time it seems successful:
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:
You may refer to the following issue: https://github.com/jhb86253817/PIPNet/issues/15#issue-1121603944
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):
But this does not impact the final result.