From e40ceb8aa3c0cbec4034baea98db1c70440d57e4 Mon Sep 17 00:00:00 2001 From: Anton Schwaighofer Date: Tue, 27 Jul 2021 13:11:42 +0100 Subject: [PATCH 01/65] packages update --- InnerEye/settings.yml | 1 + environment.yml | 9 +++++---- mypy_runner.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/InnerEye/settings.yml b/InnerEye/settings.yml index 69a05c6ee..69eaa9624 100644 --- a/InnerEye/settings.yml +++ b/InnerEye/settings.yml @@ -9,3 +9,4 @@ variables: cluster: 'training-nd24' model_configs_namespace: '' extra_code_directory: '' + pip_extra_index_url: 'https://test.pypi.org/simple' diff --git a/environment.yml b/environment.yml index 9a2b6181a..e393c0722 100644 --- a/environment.yml +++ b/environment.yml @@ -12,9 +12,9 @@ dependencies: - git+https://github.com/analysiscenter/radio.git@6d53e25#egg=radio - azure-mgmt-resource==12.1.0 - azure-mgmt-datafactory==1.1.0 - - azureml-mlflow==1.23.0 - - azureml-sdk==1.23.0 - - azureml-tensorboard==1.23.0 + - azureml-mlflow==1.32.0 + - azureml-sdk==1.32.0 + - azureml-tensorboard==1.32.0 - conda-merge==0.1.5 - dataclasses-json==0.5.2 - docker==4.3.1 @@ -22,6 +22,7 @@ dependencies: - gitpython==3.1.7 - gputil==1.4.0 - h5py==2.10.0 + - hi-ml==0.1.0.post165 - InnerEye-DICOM-RT==1.0.1 - joblib==0.16.0 - jupyter==1.0.0 @@ -29,7 +30,7 @@ dependencies: - lightning-bolts==0.3.4 - matplotlib==3.3.0 - mlflow==1.17.0 - - mypy==0.812 + - mypy==0.910 - mypy-extensions==0.4.3 - numba==0.51.2 - numpy==1.19.1 diff --git a/mypy_runner.py b/mypy_runner.py index e24279477..3ecbdac81 100644 --- a/mypy_runner.py +++ b/mypy_runner.py @@ -37,7 +37,7 @@ def run_mypy(files: List[str], mypy_executable_path: str) -> int: else: print("Skipping.") if mypy_args: - command = [mypy_executable_path, "--config=mypy.ini", *mypy_args] + command = [mypy_executable_path, "--install-types", "--non-interactive", "--config=mypy.ini", *mypy_args] # We pipe stdout and then print it, otherwise lines can appear in the wrong order in builds. process = subprocess.run(command) return_code = max(return_code, process.returncode) From 22d9aff631a3a7bbc3c158c2d4dfce89698513e6 Mon Sep 17 00:00:00 2001 From: Anton Schwaighofer Date: Fri, 30 Jul 2021 09:36:22 +0100 Subject: [PATCH 02/65] WIP --- .../Template__Run_ML_on_AzureML.xml | 3 +- InnerEye/Azure/azure_config.py | 58 ----- InnerEye/Azure/azure_runner.py | 212 ++++++------------ InnerEye/ML/run_ml.py | 130 ++++++----- InnerEye/ML/runner.py | 34 +-- Tests/Azure/test_azure_config.py | 10 +- Tests/ML/test_download_upload.py | 8 +- 7 files changed, 167 insertions(+), 288 deletions(-) diff --git a/.idea/runConfigurations/Template__Run_ML_on_AzureML.xml b/.idea/runConfigurations/Template__Run_ML_on_AzureML.xml index 8e58a0a7c..15a74e156 100644 --- a/.idea/runConfigurations/Template__Run_ML_on_AzureML.xml +++ b/.idea/runConfigurations/Template__Run_ML_on_AzureML.xml @@ -11,8 +11,9 @@