You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TensorFlow2/Segmentation/UNet_Medical/README.md
+44-38Lines changed: 44 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,20 +231,20 @@ For the specifics concerning training and inference, see the [Advanced](#advance
231
231
232
232
This script will launch a training on a single fold and store the model’s checkpoint in the <path/to/checkpoint> directory.
233
233
234
-
The script can be run directly by modifying flags if necessary, especially the number of GPUs, which is defined after the `-np` flag. Since the test volume does not have labels, 20% of the training data is used for validation in 5-fold cross-validation manner. The number of fold can be changed using `--crossvalidation_idx` with an integer in range 0-4. For example, to run with 4 GPUs using fold 1 use:
234
+
The script can be run directly by modifying flags if necessary, especially the number of GPUs, which is defined after the `-np` flag. Since the test volume does not have labels, 20% of the training data is used for validation in 5-fold cross-validation manner. The number of fold can be changed using `--fold` with an integer in range 0-4. For example, to run with 4 GPUs using fold 1 use:
Training will result in a checkpoint file being written to `./results` on the host machine.
241
241
242
242
6. Start validation/evaluation.
243
243
244
-
The trained model can be evaluated by passing the `--exec_mode evaluate` flag. Since evaluation is carried out on a validation dataset, the `--crossvalidation_idx` parameter should be filled. For example:
244
+
The trained model can be evaluated by passing the `--exec_mode evaluate` flag. Since evaluation is carried out on a validation dataset, the `--fold` parameter should be filled. For example:
*`--augment`: Enable data augmentation (default: `False`).
309
310
*`--benchmark`: Enable performance benchmarking (default: `False`). If the flag is set, the script runs in a benchmark mode - each iteration is timed and the performance result (in images per second) is printed at the end. Works for both `train` and `predict` execution modes.
The main result of the training are checkpoints stored by default in`./results/` on the host machine, andin the `/results`in the container. This location can be controlled
421
427
by the `--model_dir` command-line argument, if a different location was mounted while starting the container. In the case when the training is run in`train_and_predict` mode, the inference will take place after the training is finished, and inference results will be stored to the `/results` directory.
422
428
423
-
If the `--exec_mode train_and_evaluate` parameter was used, andif`--crossvalidation_idx` parameter isset to an integer value of {0, 1, 2, 3, 4}, the evaluation of the validation set takes place after the training is completed. The results of the evaluation will be printed to the console.
429
+
If the `--exec_mode train_and_evaluate` parameter was used, andif`--fold` parameter isset to an integer value of {0, 1, 2, 3, 4}, the evaluation of the validation set takes place after the training is completed. The results of the evaluation will be printed to the console.
0 commit comments