step3 has a problem.what should I do to solve it? change np.int32 to np.float??
cccml opened this issue · 0 comments
cccml commented
Begin Box file Clean and Replace. step(3/6)
Traceback (most recent call last):
File "main.py", line 131, in
test(ImagePath,savePathDetect,savePathAligned,savePathCroped,tag_recover=True,savesize=[64,64])
File "main.py", line 61, in test
textutil.cleanbox(fileinput=bboxlist,detectlistfile=detectlist,misslistfile=misslist)
File "C:\Users\cml\Desktop\FaceTools-master\textutil.py", line 129, in cleanbox
newline=retain_max_face(line)
File "C:\Users\cml\Desktop\FaceTools-master\textutil.py", line 103, in retain_max_face
areas=np.empty((num_detect,),dtype=np.int32)#保留的是图像的面积
TypeError: 'float' object cannot be interpreted as an integer