执行 exportPARALLEL_PROCESS_NUM=1
执行 sh 05_evaluate.sh
然后报错:

[root@94daa154d42b mapper]# sh 05_evaluate.sh
cd $(dirname $0)
model="./model_output/yolov2_quantized_model.onnx"
image="../../../01_common/data/coco/coco_val2017/images/"
anno="../../../01_common/data/coco/coco_val2017/annotations/instances_val2017.json"
python3 -u ./coco_evaluate.py \
--model=${model} \
--image_path=${image} \
--annotation_path=${anno}
loading annotations into memory...
Done (t=0.41s)
creating index...
index created!
loading annotations into memory...
Done (t=0.77s)
creating index...
index created!
Traceback (most recent call last):
File "./coco_evaluate.py", line 262, in <module>
main()
File "./coco_evaluate.py", line 251, in main
yolo_config, args.process_num)
File "./coco_evaluate.py", line 157, in __init__
self).__init__(model, image_path, annotation_path, yolov2_config)
File "./coco_evaluate.py", line 93, in __init__
self.metric = MSCOCODetMetric(self.annotation_path, with_mask=False)
File "/usr/local/lib/python3.6/site-packages/horizon_nn/coco_metric.py", line 125, in __init__
assert name in name2jsonID
AssertionError
Exception ignored in: <bound method MSCOCODetMetric.__del__ of <horizon_nn.coco_metric.MSCOCODetMetric object at 0x7fd3eaac0438>>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/horizon_nn/coco_metric.py", line 212, in __del__
if os.path.exists(self._filename):
AttributeError: 'MSCOCODetMetric' object has no attribute '_filename'
cd $(dirname $0)
model="./model_output/yolov2_quantized_model.onnx"
image="../../../01_common/data/coco/coco_val2017/images/"
anno="../../../01_common/data/coco/coco_val2017/annotations/instances_val2017.json"
python3 -u ./coco_evaluate.py \
--model=${model} \
--image_path=${image} \
--annotation_path=${anno}
loading annotations into memory...
Done (t=0.41s)
creating index...
index created!
loading annotations into memory...
Done (t=0.77s)
creating index...
index created!
Traceback (most recent call last):
File "./coco_evaluate.py", line 262, in <module>
main()
File "./coco_evaluate.py", line 251, in main
yolo_config, args.process_num)
File "./coco_evaluate.py", line 157, in __init__
self).__init__(model, image_path, annotation_path, yolov2_config)
File "./coco_evaluate.py", line 93, in __init__
self.metric = MSCOCODetMetric(self.annotation_path, with_mask=False)
File "/usr/local/lib/python3.6/site-packages/horizon_nn/coco_metric.py", line 125, in __init__
assert name in name2jsonID
AssertionError
Exception ignored in: <bound method MSCOCODetMetric.__del__ of <horizon_nn.coco_metric.MSCOCODetMetric object at 0x7fd3eaac0438>>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/horizon_nn/coco_metric.py", line 212, in __del__
if os.path.exists(self._filename):
AttributeError: 'MSCOCODetMetric' object has no attribute '_filename'
