I run the measure_map.py using the following syntax:
python measure_map.py -o simple -p test_annotation.txt -n 10 --config_filename config_vgg16.pickle
before running the code, i made sure to convert these lines, meant to use for resnet50, to make it compaitble to vgg16 as follows:
Upon running the code, I get the following keyerror
KeyError: 'difficult'
This results from this piece of code
for gt_box in gt:
if not gt_box['bbox_matched'] and not gt_box['difficult']:
if gt_box['class'] not in P:
P[gt_box['class']] = []
T[gt_box['class']] = []
T[gt_box['class']].append(1)
P[gt_box['class']].append(0)
return T, P
I run the measure_map.py using the following syntax:
python measure_map.py -o simple -p test_annotation.txt -n 10 --config_filename config_vgg16.pickle
before running the code, i made sure to convert these lines, meant to use for resnet50, to make it compaitble to vgg16 as follows:Upon running the code, I get the following keyerror
KeyError: 'difficult'
This results from this piece of codeHow to avoid this error?