Skip to content

[Fix] Put the mAP at the front of OrderedDict in VOCDataset#7064

Merged
ZwwWayne merged 1 commit intoopen-mmlab:devfrom
jbwang1997:mAP_order
Jan 26, 2022
Merged

[Fix] Put the mAP at the front of OrderedDict in VOCDataset#7064
ZwwWayne merged 1 commit intoopen-mmlab:devfrom
jbwang1997:mAP_order

Conversation

@jbwang1997
Copy link
Copy Markdown
Collaborator

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

In VOCDdataset, the first item of output is AP50. When setting save_best as auto in evaluation, the EvalHook can not match a rule for AP50 and will raise an error #7061. Thus, I put the mAP at the front of OrderedDict in VOCDataset.

Modification

Add eval_results.move_to_end('mAP', last=False) in VOCDataset.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  3. If the modification has potential influence on downstream projects, this PR should be tested with downstream projects, like MMDet or MMCls.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 23, 2022

Codecov Report

Merging #7064 (3ed033e) into dev (75f26c8) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #7064   +/-   ##
=======================================
  Coverage   62.38%   62.39%           
=======================================
  Files         329      329           
  Lines       26176    26177    +1     
  Branches     4432     4432           
=======================================
+ Hits        16331    16332    +1     
- Misses       8975     8976    +1     
+ Partials      870      869    -1     
Flag Coverage Δ
unittests 62.37% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmdet/datasets/voc.py 30.00% <0.00%> (-0.62%) ⬇️
mmdet/core/bbox/assigners/max_iou_assigner.py 73.68% <0.00%> (+1.31%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 75f26c8...3ed033e. Read the comment docs.

Copy link
Copy Markdown
Member

@RangiLyu RangiLyu left a comment

Choose a reason for hiding this comment

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

LGTM

@RangiLyu RangiLyu added the enhancement New feature or request label Jan 25, 2022
@ZwwWayne ZwwWayne merged commit 1cf658b into open-mmlab:dev Jan 26, 2022
chhluo pushed a commit to chhluo/mmdetection that referenced this pull request Feb 21, 2022
ZwwWayne pushed a commit that referenced this pull request Jul 18, 2022
ZwwWayne pushed a commit to ZwwWayne/mmdetection that referenced this pull request Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

3 participants