-
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
[Refactor] Refactor unittest #321
Conversation
Codecov Report
@@ Coverage Diff @@
## master #321 +/- ##
==========================================
+ Coverage 74.79% 76.02% +1.22%
==========================================
Files 96 96
Lines 5106 5109 +3
Branches 849 849
==========================================
+ Hits 3819 3884 +65
+ Misses 1177 1106 -71
- Partials 110 119 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
ee199a5
to
09485f7
Compare
871e1e3
to
2ac8fdf
Compare
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
verison is smaller than 1.6.0
2ac8fdf
to
59d654f
Compare
* Refactor unit tests folder structure. * Remove label smooth and Vit test in `test_classifiers.py` * Rename test_utils in dataset to test_dataset_utils * Split test_models/test_utils/test_utils.py to multiple sub files. * Add unit tests of classifiers and heads * Use patch context manager. * Add unit test of `is_tracing`, and add warning in `is_tracing` if torch verison is smaller than 1.6.0
According to https://openmmlab.feishu.cn/docs/doccnlof7fz6WSoiKCiahzj4pbd to refactor our unit tests files.
These files are re-organized and some unit tests are splited to new files.