Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 14b968c

Browse files
authored
DOC: Add a smoke-test model for AzureML setup (#708)
- Details how to test AzureML without uploading data. - Also sneaked in an update of hi-ml to fffbb0f8
1 parent 6aab3b1 commit 14b968c

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ venv.bak/
130130
.dmypy.json
131131
dmypy.json
132132

133-
# other
134-
.vscode/
135-
.devcontainer/
136-
137133
/InnerEye/ML/src/aml_config
138134
*.exe
139135
*.suo

InnerEye/ML/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Workaround for an issue with how AzureML and Pytorch Lightning interact: When spawning additional processes for DDP,
1313
# the working directory is not correctly picked up in sys.path
1414
print(f"Starting InnerEye runner at {sys.argv[0]}")
15-
innereye_root = Path(__file__).absolute().parent.parent.parent
15+
innereye_root = Path(__file__).resolve().parent.parent.parent
1616
if (innereye_root / "InnerEye").is_dir():
1717
innereye_root_str = str(innereye_root)
1818
if innereye_root_str not in sys.path:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ If it fails, please check the
9797
Further detailed instructions, including setup in Azure, are here:
9898

9999
1. [Setting up your environment](docs/environment.md)
100-
1. [Training a Hello World segmentation model](docs/hello_world_model.md)
101100
1. [Setting up Azure Machine Learning](docs/setting_up_aml.md)
101+
1. [Training a simple segmentation model in Azure ML](docs/hello_world_model.md)
102102
1. [Creating a dataset](docs/creating_dataset.md)
103103
1. [Building models in Azure ML](docs/building_models.md)
104104
1. [Sample Segmentation and Classification tasks](docs/sample_tasks.md)

docs/hello_world_model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ Then execute:
7777

7878
```shell
7979
conda activate InnerEye
80-
python InnerEye/ML/runner.py --model=HelloWorld
80+
python InnerEye/ML/runner.py --model=HelloWorld --azureml
8181
```

docs/setting_up_aml.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,14 @@ variables:
218218
219219
You should be all set now.
220220
221+
You can verify that your AzureML setup works by running in a shell:
222+
223+
```shell
224+
python InnerEye/ML/runner.py --model=HelloContainer --azureml
225+
```
226+
227+
This will start a simple model training job in AzureML. At the end of the submission process, it will print out "Run URL: ...". Paste that
228+
URL into a browser, and it will take you to the AzureML portal where you can monitor that job.
229+
221230
You can now go to the next step, [creating a dataset](creating_dataset.md), to learn how segmentation
222231
datasets should be structured, and how to get your data ready for use in training.

0 commit comments

Comments
 (0)