-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 TTA and add --tta
in tools/test.py
.
#1161
Conversation
Codecov ReportBase: 0.02% // Head: 88.60% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## dev-1.x #1161 +/- ##
============================================
+ Coverage 0.02% 88.60% +88.58%
============================================
Files 121 159 +38
Lines 8217 12544 +4327
Branches 1368 2005 +637
============================================
+ Hits 2 11115 +11113
+ Misses 8215 1098 -7117
- Partials 0 331 +331
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Please add UT
Done. |
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.
LGTM
This PR depends on open-mmlab/mmengine#611. |
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.
How to use custom tta needs to be reflected in the config as well as in the documentation, but this can be done later.
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.
LGTM.
Motivation
To support Test-Time-Aug (TTA).
Modification
AverageScoreTTAModel
inherited from theBaseTTAModel
in MMEngine.--tta
option intools/test.py
to enable TTA during the test.Use cases
To use the default TTA (average the classification scores of images w/ and w/o flip)
To use your own custom TTA method
tta_model
andtta_pipeline
in your config file:Checklist
Before PR:
After PR: