-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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 #9452
[Feature] Support TTA #9452
Conversation
configs/centernet/centernet_r18-dcnv2_8xb16-crop512-140e_coco.py
Outdated
Show resolved
Hide resolved
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.
Remember to update the document of TTA after the usage is confirmed.
@zytx121 Please synchronize the latest code to ensure that ci can pass |
configs/centernet/centernet_r18-dcnv2_8xb16-crop512-140e_coco.py
Outdated
Show resolved
Hide resolved
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. It would be better if you can add a warning in test.py if there is no tta_cfg in the config.
Add the use case to docs/en/user_guides/test.md |
Done. |
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
…mlab#9452) Co-authored-by: RangiLyu <lyuchqi@gmail.com> Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
open-mmlab/mmengine#611 is required.
To support Test-Time-Aug (TTA).
Modification
DetTTAModel
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