Open luckycaicai opened 3 years ago
And the noise randomly occurred each time I ran, the follows the results of 4 experiments :
try using cdef numpy.ndarray[double, ndim=3, mode='c'] image = numpy.zeros((h, w, c), dtype=numpy.double)
instead ofcdef numpy.ndarray[double, ndim=3, mode='c'] image = numpy.empty((h, w, c), dtype=numpy.double)
at 57th line in FaceX-Zoo/addition_module/face_mask_adding/FMA-3D/utils/cython/render.pyx, then re-compile file
try using
cdef numpy.ndarray[double, ndim=3, mode='c'] image = numpy.zeros((h, w, c), dtype=numpy.double)
instead ofcdef numpy.ndarray[double, ndim=3, mode='c'] image = numpy.empty((h, w, c), dtype=numpy.double)
at 57th line in FaceX-Zoo/addition_module/face_mask_adding/FMA-3D/utils/cython/render.pyx, then re-compile file
Thank you very much for your answer, the problem has been solved
original image:
add mask with "no speed up":
add mask with "speed up":