YonghaoHe / LFFD-A-Light-and-Fast-Face-Detector-for-Edge-Devices

A light and fast one class detection framework for edge devices. We provide face detector, head detector, pedestrian detector, vehicle detector......
MIT License
1.31k stars 330 forks source link

Error in face detection code while testing over WIDER_val dataset #107

Open CodexForster opened 3 years ago

CodexForster commented 3 years ago

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?