-
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 TSM-MobileNetV2 #415
Conversation
2. update unittest. 3. refactor mobilentv2 with torchvision version.
What a contribution ! We can help to train some config settings to share your gpu pressure : ) |
Codecov Report
@@ Coverage Diff @@
## master #415 +/- ##
==========================================
+ Coverage 84.10% 84.31% +0.20%
==========================================
Files 122 124 +2
Lines 8633 8771 +138
Branches 1435 1467 +32
==========================================
+ Hits 7261 7395 +134
- Misses 1018 1019 +1
- Partials 354 357 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
The original repo doesn't provide training configs for tsm-mobilenetv2, so the training configs are copied from mmaction2-tsm-resnet50. Not sure if it is ok. |
trained mobilenet-tsm with |
@kennymckormick next week I will refactor mobilenet with mmclassification |
Great! It would be the best case if we can directly use mmcls's mobilenet. |
trained mobilenet-tsm with DenseSampleFrames1x1x8/0.0025lr/4 gpus/50epochs, get top1/5 acuracy 65.11%/85.99%, far bellow origin ckpt 69.54%/88.66%(100 epochs). The best ckpt is from the 50th epoch, I guess more epochs would help. @dreamerlin Maybe when I finish refactor mobilenetv2 with mmcls, you could kindly help to train this model with 8 gpus and 100 epochs, and upload the ckpt/json/log |
@dreamerlin ready to train and review. Successfully convert origin ckpt to mmcls_mobilenetv2_tsm, get 69.5% top 1 val accuracy. |
trained mobilenet-tsm with DenseSampleFrames1x1x8/0.004lr/4 gpus/100epochs/0.00004 weight decay, get top1/5 acuracy 68.31%/88.00%, much better than before, not far away from origin ckpt 69.54%/88.66%(100 epochs). Maybe the remaining 1% gap is caused by the lack of training samples(There are only 220k videos in my kinetics-400 dataset training set) |
Sorry for my late respond due to personal affair. trained mobilenet-tsm with DenseSampleFrames1x1x8/0.01lr/8 gpus/100epochs/0.00004 weight decay, get top1/5 acuracy 68.33%/88.34%. Any suggestion ? @innerlee @irvingzhang0512 |
Yeah, I can help to train it :P |
top1: 68.46, using 3 crop and full size (256) |
Don't know what to do. Maybe we should follow @kennymckormick 's suggestion, train tsm-mobilenetv2 with the original repo. I'm a little busy these days, may have a try after spring festival.. |
@innerlee I think we can merge this PR once the performance is the same or better than the paper. performance alignment with the released ckpt can be postponed, what's ur opinion? |
Yeah better than paper is good enough |
@dreamerlin Would you please help add the ckpts you trained? Maybe it's OK to merge it first and try to improve the performance later. |
related config files and links are updated now |
failing tests are related |
Thanks! |
* [Feature] add mobilenetv2-tsm, first commit. * 1. remove torchvision mobilentv2. 2. update unittest. 3. refactor mobilentv2 with torchvision version. * fix unittest bug and update annotations. * chanage default config. * fix default configs * fix unittest and config bug. * improve unittest coverage * update training configs * refactor mobilenet_v2 with mmclassification * add changelog * update changelog * fix unittest * fix unittest * improve Codecov * update default training configs * add inference config * fix * refactor unittest * refactor config * update config and model link * update config & docs Co-authored-by: Jintao Lin <528557675@qq.com>
TODO list
training results of mobilenet-tsm with DenseSampleFrames1x1x8. (origin ckpt get 69.54%/88.66% top1/5 accuracy).