update output format of inference
Browse files- configs/inference.json +10 -1
- configs/metadata.json +2 -1
configs/inference.json
CHANGED
@@ -89,11 +89,20 @@
|
|
89 |
"keys": "pred",
|
90 |
"threshold": 0.5
|
91 |
},
|
|
|
|
|
|
|
|
|
|
|
92 |
{
|
93 |
"_target_": "SaveImaged",
|
94 |
"keys": "pred",
|
95 |
"meta_keys": "pred_meta_dict",
|
96 |
-
"output_dir": "@output_dir"
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
]
|
99 |
},
|
|
|
89 |
"keys": "pred",
|
90 |
"threshold": 0.5
|
91 |
},
|
92 |
+
{
|
93 |
+
"_target_": "Lambdad",
|
94 |
+
"keys": "pred",
|
95 |
+
"func": "$lambda x: torch.where(x[[2]] > 0, 4, torch.where(x[[0]] > 0, 1, torch.where(x[[1]] > 0, 2, 0)))"
|
96 |
+
},
|
97 |
{
|
98 |
"_target_": "SaveImaged",
|
99 |
"keys": "pred",
|
100 |
"meta_keys": "pred_meta_dict",
|
101 |
+
"output_dir": "@output_dir",
|
102 |
+
"output_postfix": "seg",
|
103 |
+
"output_dtype": "uint8",
|
104 |
+
"resample": false,
|
105 |
+
"squeeze_end_dims": true
|
106 |
}
|
107 |
]
|
108 |
},
|
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": "update to use monai 1.0.1",
|
6 |
"0.3.2": "enhance readme on commands example",
|
7 |
"0.3.1": "fix license Copyright error",
|
|
|
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": "update output format of inference",
|
6 |
"0.3.3": "update to use monai 1.0.1",
|
7 |
"0.3.2": "enhance readme on commands example",
|
8 |
"0.3.1": "fix license Copyright error",
|