enhance readme on commands example
Browse files- README.md +3 -0
- configs/metadata.json +2 -1
- docs/README.md +3 -0
README.md
CHANGED
@@ -42,6 +42,9 @@ Override the `train` config to execute multi-GPU training:
|
|
42 |
torchrun --standalone --nnodes=1 --nproc_per_node=2 -m monai.bundle run training --meta_file configs/metadata.json --config_file "['configs/train.json','configs/multi_gpu_train.json']" --logging_file configs/logging.conf
|
43 |
```
|
44 |
|
|
|
|
|
|
|
45 |
Override the `train` config to execute evaluation with the trained model:
|
46 |
|
47 |
```
|
|
|
42 |
torchrun --standalone --nnodes=1 --nproc_per_node=2 -m monai.bundle run training --meta_file configs/metadata.json --config_file "['configs/train.json','configs/multi_gpu_train.json']" --logging_file configs/logging.conf
|
43 |
```
|
44 |
|
45 |
+
Please note that the distributed training related options depend on the actual running environment, thus you may need to remove `--standalone`, modify `--nnodes` or do some other necessary changes according to the machine you used.
|
46 |
+
Please refer to [pytorch's official tutorial](https://pytorch.org/tutorials/intermediate/ddp_tutorial.html) for more details.
|
47 |
+
|
48 |
Override the `train` config to execute evaluation with the trained model:
|
49 |
|
50 |
```
|
configs/metadata.json
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
{
|
2 |
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
|
3 |
-
"version": "0.3.
|
4 |
"changelog": {
|
|
|
5 |
"0.3.3": "fix license Copyright error",
|
6 |
"0.3.2": "improve multi-gpu logging",
|
7 |
"0.3.1": "add multi-gpu evaluation config",
|
|
|
1 |
{
|
2 |
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
|
3 |
+
"version": "0.3.4",
|
4 |
"changelog": {
|
5 |
+
"0.3.4": "enhance readme on commands example",
|
6 |
"0.3.3": "fix license Copyright error",
|
7 |
"0.3.2": "improve multi-gpu logging",
|
8 |
"0.3.1": "add multi-gpu evaluation config",
|
docs/README.md
CHANGED
@@ -35,6 +35,9 @@ Override the `train` config to execute multi-GPU training:
|
|
35 |
torchrun --standalone --nnodes=1 --nproc_per_node=2 -m monai.bundle run training --meta_file configs/metadata.json --config_file "['configs/train.json','configs/multi_gpu_train.json']" --logging_file configs/logging.conf
|
36 |
```
|
37 |
|
|
|
|
|
|
|
38 |
Override the `train` config to execute evaluation with the trained model:
|
39 |
|
40 |
```
|
|
|
35 |
torchrun --standalone --nnodes=1 --nproc_per_node=2 -m monai.bundle run training --meta_file configs/metadata.json --config_file "['configs/train.json','configs/multi_gpu_train.json']" --logging_file configs/logging.conf
|
36 |
```
|
37 |
|
38 |
+
Please note that the distributed training related options depend on the actual running environment, thus you may need to remove `--standalone`, modify `--nnodes` or do some other necessary changes according to the machine you used.
|
39 |
+
Please refer to [pytorch's official tutorial](https://pytorch.org/tutorials/intermediate/ddp_tutorial.html) for more details.
|
40 |
+
|
41 |
Override the `train` config to execute evaluation with the trained model:
|
42 |
|
43 |
```
|