fix data type issue in searching/training configurations
Browse files- README.md +1 -1
- configs/metadata.json +3 -2
- configs/search.yaml +1 -1
- configs/train.yaml +1 -1
- docs/README.md +1 -1
README.md
CHANGED
@@ -57,7 +57,7 @@ python -m monai.bundle run training --meta_file configs/metadata.json --config_f
|
|
57 |
Override the `train` config to execute multi-GPU training:
|
58 |
|
59 |
```
|
60 |
-
torchrun --
|
61 |
```
|
62 |
|
63 |
Override the `train` config to execute evaluation with the trained model:
|
|
|
57 |
Override the `train` config to execute multi-GPU training:
|
58 |
|
59 |
```
|
60 |
+
torchrun --nnodes=1 --nproc_per_node=2 -m monai.bundle run training --meta_file configs/metadata.json --config_file "['configs/train.yaml','configs/multi_gpu_train.yaml']" --logging_file configs/logging.conf
|
61 |
```
|
62 |
|
63 |
Override the `train` config to execute evaluation with the trained model:
|
configs/metadata.json
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
{
|
2 |
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
|
3 |
-
"version": "0.1.
|
4 |
"changelog": {
|
|
|
5 |
"0.1.0": "complete the model package",
|
6 |
"0.0.1": "initialize the model package structure"
|
7 |
},
|
8 |
-
"monai_version": "0.9.
|
9 |
"pytorch_version": "1.12.0",
|
10 |
"numpy_version": "1.21.2",
|
11 |
"optional_packages_version": {
|
|
|
1 |
{
|
2 |
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
|
3 |
+
"version": "0.1.1",
|
4 |
"changelog": {
|
5 |
+
"0.1.1": "fix data type issue in searching/training configurations",
|
6 |
"0.1.0": "complete the model package",
|
7 |
"0.0.1": "initialize the model package structure"
|
8 |
},
|
9 |
+
"monai_version": "0.9.1",
|
10 |
"pytorch_version": "1.12.0",
|
11 |
"numpy_version": "1.21.2",
|
12 |
"optional_packages_version": {
|
configs/search.yaml
CHANGED
@@ -85,7 +85,7 @@ transform_train:
|
|
85 |
- label4crop
|
86 |
- _target_: Lambdad
|
87 |
keys: label4crop
|
88 |
-
func: "$lambda x, s=@output_classes: np.concatenate(tuple([ndimage.binary_dilation((x==_k).astype(x.dtype), iterations=48).astype(
|
89 |
overwrite: true
|
90 |
- _target_: EnsureTyped
|
91 |
keys:
|
|
|
85 |
- label4crop
|
86 |
- _target_: Lambdad
|
87 |
keys: label4crop
|
88 |
+
func: "$lambda x, s=@output_classes: np.concatenate(tuple([ndimage.binary_dilation((x==_k).astype(x.dtype), iterations=48).astype(float) for _k in range(s)]), axis=0)"
|
89 |
overwrite: true
|
90 |
- _target_: EnsureTyped
|
91 |
keys:
|
configs/train.yaml
CHANGED
@@ -113,7 +113,7 @@ train:
|
|
113 |
- _target_: Lambdad
|
114 |
keys: label4crop
|
115 |
func: "$lambda x, s=@output_classes: np.concatenate(tuple([ndimage.binary_dilation((x==_k).astype(x.dtype),
|
116 |
-
iterations=48).astype(
|
117 |
overwrite: true
|
118 |
- _target_: EnsureTyped
|
119 |
keys:
|
|
|
113 |
- _target_: Lambdad
|
114 |
keys: label4crop
|
115 |
func: "$lambda x, s=@output_classes: np.concatenate(tuple([ndimage.binary_dilation((x==_k).astype(x.dtype),
|
116 |
+
iterations=48).astype(float) for _k in range(s)]), axis=0)"
|
117 |
overwrite: true
|
118 |
- _target_: EnsureTyped
|
119 |
keys:
|
docs/README.md
CHANGED
@@ -50,7 +50,7 @@ python -m monai.bundle run training --meta_file configs/metadata.json --config_f
|
|
50 |
Override the `train` config to execute multi-GPU training:
|
51 |
|
52 |
```
|
53 |
-
torchrun --
|
54 |
```
|
55 |
|
56 |
Override the `train` config to execute evaluation with the trained model:
|
|
|
50 |
Override the `train` config to execute multi-GPU training:
|
51 |
|
52 |
```
|
53 |
+
torchrun --nnodes=1 --nproc_per_node=2 -m monai.bundle run training --meta_file configs/metadata.json --config_file "['configs/train.yaml','configs/multi_gpu_train.yaml']" --logging_file configs/logging.conf
|
54 |
```
|
55 |
|
56 |
Override the `train` config to execute evaluation with the trained model:
|