LFFD-A-Light-and-Fast-Face-Detector-for-Edge-Devices
LFFD-A-Light-and-Fast-Face-Detector-for-Edge-Devices copied to clipboard
Error in face detection code while testing over WIDER_val dataset
I tried to evaluate the saved model on the WIDER_val dataset. I have downloaded the dataset from the official website and placed the folder in the data_provider_farm and changed the required paths in evaluation_on_widerface.py (line 27). But when I run the same python file, I get the following error:
Traceback (most recent call last): File "evaluation_on_widerface.py", line 57, in
fout.write('%d %d %d %d %.03f' % (math.floor(bbox[0]), math.floor(bbox[1]), math.ceil(bbox[2] - bbox[0]), math.ceil(bbox[3] - bbox[1]), bbox[4] if bbox[4] <= 1 else 1) + '\n') TypeError: must be real number, not tuple
What am I doing wrong?