Open zubair-ahmed-ai opened 4 years ago
It seems that you do not use the cython version of NMS?
I got compilation error so I uncommented this line and commented the next one
I am on Windows 10 FWIW
I changed to the following in FaceBoxes/utils/nms/cpu_nms.pyx after lots of tries and it seems to be working (in progress)
def cpu_nms(np.ndarray[np.float32_t, ndim=2] dets, np.float thresh):
cdef np.ndarray[np.float32_t, ndim=1] x1 = dets[:, 0]
cdef np.ndarray[np.float32_t, ndim=1] y1 = dets[:, 1]
cdef np.ndarray[np.float32_t, ndim=1] x2 = dets[:, 2]
cdef np.ndarray[np.float32_t, ndim=1] y2 = dets[:, 3]
cdef np.ndarray[np.float32_t, ndim=1] scores = dets[:, 4]
cdef np.ndarray[np.float32_t, ndim=1] areas = (x2 - x1 + 1) * (y2 - y1 + 1)
cdef np.ndarray[np.int64_t, ndim=1] order = scores.argsort()[::-1]
cdef int ndets = dets.shape[0]
cdef np.ndarray[np.int64_t, ndim=1] suppressed = \
np.zeros((ndets), dtype=np.int64)
I have found a similar issue: https://github.com/eragonruan/text-detection-ctpn/issues/380. BTW, good luck : )
I also had to do below in two places in demo_video.py
if len(boxes) == 0:
continue
I have found a similar issue: eragonruan/text-detection-ctpn#380. BTW, good luck : )
I got the idea from that post myself, my above fix worked.
If this fix works across platforms, welcome for your PR : )
if you got "cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'" error modify 47 line of build.py to extra_compile_args=['std=c99'],
if you got "cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'" error modify 47 line of build.py to extra_compile_args=['std=c99'],
cl: 命令行 warning D9024 :无法识别的源文件类型“std=c99”,假定为对象文件 cl: 命令行 warning D9027 :源文件“std=c99”被忽略
do you know how to generate the 3D render picture with color? thanks. @cleardusk @JacksonL1
@chenbolinstudent the first version of 3DDFA has implement code. I think you can refer to that code
@JacksonL1 I want to get such 3D render picture with color. can the code do it ?
@JacksonL1 transfer .obj to png
it only transfer .mat to png ? not transfer .obj to png?
@JacksonL1 @cleardusk I can not transfer .obj to png. can you do it ?
@JacksonL1 @cleardusk I can not transfer .obj to png. can you do it ?
use trimesh module.
On windows10, please uncomment _extra_compileargs={'gcc': ["-Wno-cpp", "-Wno-unused-function"]}, in FaceBoxes/utils/build.py line 46
In the line
xx1 = np.maximum(x1[i], x1[order[1:]])
below it throws this error inFaceBoxes\utils\nms\py_cpu_nms.py