FaceX-Zoo
FaceX-Zoo copied to clipboard
In face_mask_adding, it made some noise on the image ,when using 'Speed Up' method.
original image:
-
add mask with "no speed up":
-
add mask with "speed up":
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