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

Commit 0e50ad5

Browse files
Document Segmentation Model Evaluation (#544)
1 parent 3075b44 commit 0e50ad5

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ created.
1313
## Upcoming
1414

1515
### Added
16+
- ([#544](https://github.com/microsoft/InnerEye-DeepLearning/pull/544)) Add documentation for segmentation model evaluation.
1617
- ([#465](https://github.com/microsoft/InnerEye-DeepLearning/pull/465/)) Adding ability to run segmentation inference
1718
module on test data with partial ground truth files. (Also [522](https://github.com/microsoft/InnerEye-DeepLearning/pull/522).)
1819
- ([#502](https://github.com/microsoft/InnerEye-DeepLearning/pull/502)) More flags for fine control of when to run inference.

docs/move_model.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@ training time:
1010

1111
If you want to export a model from one Workspace to another you can use the following command to download and upload a
1212
model from an AzureML workspace. This script does not use settings.yml, it uses interactive authentication, and the
13-
workspace specified in the parameters. The model will be written to the path in --path parameter with two folders one
14-
for the `MODEL` and one for the `ENVIRONMENT` files.
13+
workspace specified in the parameters.
1514

16-
- Download to
17-
path: `python InnerEye/Scripts/move_model.py -a download --path ./ --workspace_name "<name>" --resource_group "<name>" --subscription_id "<sub_id>" --model_id "name:version"`
15+
- Download to path:
1816

19-
- Upload from
20-
path: `python InnerEye/Scripts/move_model.py - upload --path ./ --workspace_name "<name>" --resource_group "<name>" --subscription_id "<sub_id>" --model_id "name:version"`
17+
`python InnerEye/Scripts/move_model.py -a download --path ./ --workspace_name "<name>" --resource_group "<name>" --subscription_id "<sub_id>" --model_id "name:version"`
18+
19+
The model will be downloaded to a subfolder called `name_version` (based on the `--model_id` parameter) of the path in `--path` parameter. For example, with `--model_id "my_model:100` this will be `my_model_100`. The subfolder will contain two folders: one for the `MODEL` and one for the `ENVIRONMENT` files.
20+
21+
- Upload from path:
22+
23+
`python InnerEye/Scripts/move_model.py -a upload --path ./ --workspace_name "<name>" --resource_group "<name>" --subscription_id "<sub_id>" --model_id "name:version"`
24+
25+
The model is expected to be in the format above, i.e. contained in a subfolder called `name_version` of the path in `--path` parameter. The model will be automatically given the next available `id` once uploaded to the workspace. For example, if `my_model:100` already exists then it will be called `my_model:101`.
2126

2227
Once in place you may want to run inference on the model with partial test data, i.e. test data from patients for whom
23-
some of the labels are missing. Normally inference on partial test data would raise an exception. To allow inference to continue over partial test data add the flag `--allow_incomplete_labels` to your inference call, for example `python InnerEye/ML/runner.py --allow_incomplete_labels --train=False --azureml --model=<model_name> --run_recovery_id=<recovery_id>`
28+
some of the labels are missing. Normally inference on partial test data would raise an exception. To allow inference to continue over partial test data add the flag `--allow_incomplete_labels` to your inference call, for example `python InnerEye/ML/runner.py --allow_incomplete_labels --no-train --azureml --model=<model_name> --run_recovery_id=<recovery_id>`

0 commit comments

Comments
 (0)