Object Detection Metrics. 14 object detection metrics: mean Average Precision (mAP), Average Recall (AR), Spatio-Temporal Tube Average Precision (STT-AP). This project supports different bounding box formats as in COCO, PASCAL, Imagenet, etc.
File "github-repo/eval.py", line 12, in
dts = coco2bb('dets', BBType.DETECTED)
File "github-repo/review_object_detection_metrics/src/utils/converter.py", line 31, in coco2bb
if not validations.is_coco_format(file_path):
File "github-repo/review_object_detection_metrics/src/utils/validations.py", line 302, in is_coco_format
return is_json(file_path) and json_contains_tags(file_path, [
File "github-repo/review_object_detection_metrics/src/utils/validations.py", line 115, in json_contains_tags
for key, item in json_object.items():
AttributeError: 'list' object has no attribute 'items'
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
So i have the datasets and predictions as request by the cocodataset format and when i try to run the following code
import json from math import isclose
import sys sys.path.append("review_object_detection_metrics/") from src.bounding_box import BBFormat, BBType, BoundingBox from src.evaluators.coco_evaluator import get_coco_summary from src.utils.converter import coco2bb
Load coco samples
gts = coco2bb('gts', BBType.GROUND_TRUTH) dts = coco2bb('dets', BBType.DETECTED) res = get_coco_summary(gts, dts)
I get this error :
Traceback (most recent call last):
File "github-repo/eval.py", line 12, in
dts = coco2bb('dets', BBType.DETECTED)
File "github-repo/review_object_detection_metrics/src/utils/converter.py", line 31, in coco2bb
if not validations.is_coco_format(file_path):
File "github-repo/review_object_detection_metrics/src/utils/validations.py", line 302, in is_coco_format
return is_json(file_path) and json_contains_tags(file_path, [
File "github-repo/review_object_detection_metrics/src/utils/validations.py", line 115, in json_contains_tags
for key, item in json_object.items():
AttributeError: 'list' object has no attribute 'items'