Adding EfficientNetsB0-B7 support#1938
Conversation
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
wyli
left a comment
There was a problem hiding this comment.
thanks @masadcv! this looks nice I have some minor comments inline, perhaps @yiheng-wang-nv could help double-check with the network details? also please add @skip_if_quick to the unit tests if they requires downloading, e.g. https://github.com/Project-MONAI/MONAI/blob/master/tests/test_ahnet.py#L138
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
@wyli thank you for your comments! I have addressed all but the 'memswish' has been added to unittests for activation. The kitty test image has been updated to use a Creative Commons image from wikimedia commons. I need a few more passes to have everything double-checked and in place. I will also run the full coverage integration tests as soon as I have access to relevant resources. @yiheng-wang-nv would it be possible to have your review in the coming days? Thank you! |
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
928c91d to
f2606e7
Compare
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
@wyli many thanks! I have done both, locally all tests are passing. It would be awesome to have this in v0.5. Once that is done, I will also add a tutorial. Do you have any suggestions for medical imaging related classification dataset that I can use for a simple tutorial? @yiheng-wang-nv many thanks for your comments, I have addressed most of your comments. I will look into testing different shapes as you suggested. |
|
/black tutorial -- we have a demo script using the IXI dataset (https://brain-development.org/ixi-dataset/) for gender classification https://github.com/Project-MONAI/tutorials/blob/master/3d_classification/torch/densenet_training_array.py perhaps you can make a new example based on it |
I am looking into this error now. Should resolve soon. |
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
Many thanks @masadcv , this PR looks nice! |
|
Seems to be failing on unrelated test now: |
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
* adding init efficientnet support Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * fixing flake8 and further refactoring Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * adding unittests for efficiennet Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * making unittests backwards compatible python<3.8 Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * fixed kitty unittests file path Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * adding docstrings and minor refactoring Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * fix flake8-py3 failing test Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * generalize drop_connect for n-dim, fix/add unittests, remove assert Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * fix failing unittest, CC0-license image for test Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * refactoring code for review Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * WIP fix mypy type hint errors Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * fix cuda test error Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * WIP fix test errors Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * adding non-default shape tests Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * remove 3d case from non-default shape test Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> * refactoring and updating docs Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk> Co-authored-by: Yiheng Wang <68361391+yiheng-wang-nv@users.noreply.github.com> Co-authored-by: Wenqi Li <wenqil@nvidia.com> Signed-off-by: Neha Srivathsa <nsrivathsa@nvidia.com>
Signed-off-by: masadcv muhammad.asad@kcl.ac.uk
Fixes #1090 .
Description
Adding support for original EfficientNetB0-B7 models from: https://arxiv.org/abs/1905.11946
Based on https://github.com/lukemelas/EfficientNet-PyTorch
tests.utils.test_script_save()Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests.make htmlcommand in thedocs/folder.