widerface-to-tfrecord
widerface-to-tfrecord copied to clipboard
Error while running: raise Exception.
Hi, I tried to create tfrecords by following along but got stuck in an error somewhere, Here's my directory: widerface-to-tfrecord-master -utils -wider_face_split --wider_face_split ---.txt and .mat s -WIDER_train --WIDER_train ---images -WIDER_val --WIDER_val ---images -WIDER_test --WIDER_test ---images -output -config.py -wider_to_tfrecord.py
I've set config.py as:
TRAIN_WIDER_PATH = "./WIDER_train/WIDER_train/"
VAL_WIDER_PATH = "./WIDER_val/WIDER_val/"
TEST_WIDER_PATH = None
GROUND_TRUTH_PATH = "./wider_face_split/wider_face_split/"
OUTPUT_PATH = "./output/"
and on running wider_to_tfrecord.py :
python3 wider_to_tfrecord.py
Processing WIDER_train/WIDER_train/images
Traceback (most recent call last):
File "wider_to_tfrecord.py", line 170, in
@paarthbir77 Hi! Some images in wider face dataset include no bounding box, which causes this exception. You can print the filenames to see where it stuck.
@paarthbir77 check the paths, especially if you're trying to process on Windows.
At line 75 replace code as such:
if not isinstance(face_num, int):
print('[ERROR] not an integer', face_num)
raise Exception()
elif face_num==0:
'''if no faces are given the co-rdinates are specified as 0 in annotations'''
face_num = 1`