Closed macsermkiat closed 6 years ago
@macsermkiat which value is -1, can you show me more details, thanks.
Hello. I got the same error. It came from 390 line of /DFace/dface/core/detect.py. Namely after the first hundred processed images in tmp = np.zeros(tmph[i], tmpw[i], 3), dtype=np.uint8)
tmph[i] == -4 and tmpw[i] == -4 when i == 457
@kimimatias which version of your python
@kuaikuaikim I'm using Python 2.7 It's as @kimimatias wrote. There're some of tmph[i] < 0 There are also sometimes tmph[i] == 0 too, that also caused error.
@macsermkiat @kimimatias Maybe some bias sample make this problem, try filter this sample image of negative prediction.
@kuaikuaikim I'm using Python 3.5
It gave error from negative dimension, I try to find the value and it's -1, not sure where it came from