Adding EfficientNetsB0-B7 support#1938
Conversation
Signed-off-by: masadcv <[email protected]>
Signed-off-by: masadcv <[email protected]>
Signed-off-by: masadcv <[email protected]>
Signed-off-by: masadcv <[email protected]>
Signed-off-by: masadcv <[email protected]>
Signed-off-by: masadcv <[email protected]>
Signed-off-by: masadcv <[email protected]>
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 <[email protected]>
Signed-off-by: masadcv <[email protected]>
@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 <[email protected]>
928c91d to
f2606e7
Compare
Signed-off-by: masadcv <[email protected]>
@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 <[email protected]>
Signed-off-by: masadcv <[email protected]>
Signed-off-by: masadcv <[email protected]>
Signed-off-by: masadcv <[email protected]>
Many thanks @masadcv , this PR looks nice! |
|
Seems to be failing on unrelated test now: |
Signed-off-by: masadcv <[email protected]>
* adding init efficientnet support Signed-off-by: masadcv <[email protected]> * fixing flake8 and further refactoring Signed-off-by: masadcv <[email protected]> * adding unittests for efficiennet Signed-off-by: masadcv <[email protected]> * making unittests backwards compatible python<3.8 Signed-off-by: masadcv <[email protected]> * fixed kitty unittests file path Signed-off-by: masadcv <[email protected]> * adding docstrings and minor refactoring Signed-off-by: masadcv <[email protected]> * fix flake8-py3 failing test Signed-off-by: masadcv <[email protected]> * generalize drop_connect for n-dim, fix/add unittests, remove assert Signed-off-by: masadcv <[email protected]> * fix failing unittest, CC0-license image for test Signed-off-by: masadcv <[email protected]> * refactoring code for review Signed-off-by: masadcv <[email protected]> * WIP fix mypy type hint errors Signed-off-by: masadcv <[email protected]> * fix cuda test error Signed-off-by: masadcv <[email protected]> * WIP fix test errors Signed-off-by: masadcv <[email protected]> * adding non-default shape tests Signed-off-by: masadcv <[email protected]> * remove 3d case from non-default shape test Signed-off-by: masadcv <[email protected]> * refactoring and updating docs Signed-off-by: masadcv <[email protected]> Co-authored-by: Yiheng Wang <[email protected]> Co-authored-by: Wenqi Li <[email protected]> Signed-off-by: Neha Srivathsa <[email protected]>
Signed-off-by: masadcv [email protected]
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.