-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Support CityScapesDetection Metric #103
base: main
Are you sure you want to change the base?
Conversation
>>> dataset_metas = { | ||
... 'classes': ('person', 'rider', 'car', 'truck', 'bus', 'train', | ||
... 'motorcycle', 'bicycle') | ||
... } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If dataset_meta
is required in this Metric, it must be explained in the docstring
cityscapes_det_metric = CityScapesDetection( | ||
dataset_meta=dataset_metas, | ||
format_only=True, | ||
outfile_prefix=osp.join(tmp_dir.name, 'test'), | ||
seg_prefix=seg_prefix, | ||
keep_results=True, | ||
keep_gt_json=True, | ||
classwise=True) | ||
|
||
eval_results = cityscapes_det_metric( | ||
predictions=predictions, groundtruths=groundtruths) | ||
assert osp.exists(f'{osp.join(tmp_dir.name, "test")}') | ||
assert eval_results == dict() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add a test case: call metric.add
>= 2 times and then metric.compute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already compute 2 times. len(predictions) == len(groundtruths) == 2
No description provided.