-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature] Support Mixup and Cutmix for Recognizers. #681
Conversation
Codecov Report
@@ Coverage Diff @@
## master #681 +/- ##
==========================================
+ Coverage 84.59% 84.71% +0.11%
==========================================
Files 130 131 +1
Lines 9357 9426 +69
Branches 1578 1583 +5
==========================================
+ Hits 7916 7985 +69
Misses 1042 1042
Partials 399 399
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@innerlee This pr is ready for review. Training models now. |
@congee524 Please help to check the config error |
Since our kinetics400/sthv2 are somehow different, I train cutmix/mixup on sthv1. sthv1 tsm-r50-1x1x8 results:
ckpt/json/log is here: https://wp.cethik.com:443/link/65C665F9E03EE42D9D479A70DACA53FA Could anyone help to upload these? |
Sure |
@innerlee Please check this PR. |
] | ||
|
||
# model settings | ||
# model settings# model settings |
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.
duplicate
dropout_ratio=0.4, | ||
init_std=0.01), | ||
# model training and testing settings | ||
# train_cfg=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.
remove
Thanks! |
Support Mixup and Cutmix for Recognizers.
TODO
Discussions
train_cfg
. A sample config is listed as follows. TypeError will be raised.And error msg is
TypeError: train_cfg={'blending': {'type': 'CutmixBlending', 'num_classes': 400, 'alpha': 0.2}} in child config cannot inherit from base because train_cfg is a dict in the child config but is of type <class 'NoneType'> in base config. You may set
delete=Trueto ignore the base config
visualize examples
mixup
cutmix

Results