Skip to content
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

[Fix] Fix VOC metrics #9784

Merged
merged 4 commits into from
Feb 17, 2023
Merged

Conversation

BIGWangYuDong
Copy link
Collaborator

@BIGWangYuDong BIGWangYuDong commented Feb 16, 2023

  1. Fixed VOC metrics, add eval_mode in eval_map, or it will used area when calculating VOC2007, which is wrong.

def process(self, data_batch: dict, data_samples: Sequence[dict]) -> None:
"""transfer tensors in predictions to CPU."""
data_samples = _to_cpu(data_samples)
for data_sample in data_samples:
# remove gt
data_sample.pop('gt_instances', None)
data_sample.pop('ignored_instances', None)
if not self.keep_gt:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering whether we should keep gt in the dumped results. Because it is duplicated with the dataset annotation and is not compressed.
We can modify the eval_metric.py to load the annotation during offline evaluation.

@ZwwWayne ZwwWayne merged commit 95d4fc4 into open-mmlab:dev-3.x Feb 17, 2023
yumion pushed a commit to yumion/mmdetection that referenced this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants