From e477c9dd838b6f942b5b92be9c751b03f557afd7 Mon Sep 17 00:00:00 2001 From: Anton Schwaighofer Date: Wed, 15 Dec 2021 10:48:35 +0000 Subject: [PATCH] Upgrade to Pytorch Lightning 1.5.5 (#591) --- .../Template__Run_ML_on_AzureML.xml | 2 +- .../Template__Run_ML_on_local_machine.xml | 2 +- CHANGELOG.md | 1 + .../ssl_classifier_module.py | 19 ++---- .../lightning_modules/ssl_online_evaluator.py | 20 ++++-- InnerEye/ML/SSL/utils.py | 22 ++++++- InnerEye/ML/baselines_util.py | 50 +++++++++++--- InnerEye/ML/configs/other/HelloContainer.py | 2 +- InnerEye/ML/deep_learning_config.py | 8 ++- InnerEye/ML/lightning_base.py | 25 ++----- InnerEye/ML/lightning_metrics.py | 2 +- InnerEye/ML/lightning_models.py | 15 ++--- InnerEye/ML/metrics.py | 7 +- InnerEye/ML/model_training.py | 61 ++++++++++------- InnerEye/ML/run_ml.py | 9 ++- InnerEye/ML/runner.py | 21 ++++-- InnerEye/ML/utils/metrics_util.py | 8 +-- .../OUTPUT/Train/epoch_metrics.csv | 4 +- .../OUTPUT/Val/epoch_metrics.csv | 4 +- .../OUTPUT/Train/epoch_metrics.csv | 4 +- .../OUTPUT/Val/epoch_metrics.csv | 4 +- .../OUTPUT/Train/epoch_metrics.csv | 4 +- .../OUTPUT/Val/epoch_metrics.csv | 4 +- Tests/AfterTraining/test_after_training.py | 59 +++++++++-------- Tests/ML/configs/lightning_test_containers.py | 2 +- .../sequential/test_rnn_classifier.py | 4 ++ .../test_image_encoder_with_mlp.py | 2 + Tests/ML/test_model_training.py | 42 ++++++------ Tests/ML/test_regression_tests.py | 66 +++++++++++++++---- Tests/ML/utils/test_model_util.py | 6 +- Tests/SSL/test_ssl_containers.py | 31 +++++---- azure-pipelines/build-pr.yml | 2 +- azure-pipelines/build.yaml | 2 +- environment.yml | 8 +-- fastMRI | 2 +- 35 files changed, 323 insertions(+), 201 deletions(-) diff --git a/.idea/runConfigurations/Template__Run_ML_on_AzureML.xml b/.idea/runConfigurations/Template__Run_ML_on_AzureML.xml index 28140e00e..1f92e2c5c 100644 --- a/.idea/runConfigurations/Template__Run_ML_on_AzureML.xml +++ b/.idea/runConfigurations/Template__Run_ML_on_AzureML.xml @@ -13,7 +13,7 @@