Fix evaluation
Browse files- configs/evaluate.json +21 -6
- configs/metadata.json +2 -1
- configs/train.json +3 -2
configs/evaluate.json
CHANGED
@@ -6,12 +6,27 @@
|
|
6 |
{
|
7 |
"_target_": "Activationsd",
|
8 |
"keys": "pred",
|
9 |
-
"
|
10 |
},
|
11 |
{
|
12 |
"_target_": "AsDiscreted",
|
13 |
-
"keys":
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
},
|
16 |
{
|
17 |
"_target_": "SaveImaged",
|
@@ -39,11 +54,11 @@
|
|
39 |
"_target_": "MetricsSaver",
|
40 |
"save_dir": "@output_dir",
|
41 |
"metrics": [
|
42 |
-
"
|
43 |
-
"
|
44 |
],
|
45 |
"metric_details": [
|
46 |
-
"
|
47 |
],
|
48 |
"batch_transform": "$monai.handlers.from_engine(['image_meta_dict'])",
|
49 |
"summary_ops": "*"
|
|
|
6 |
{
|
7 |
"_target_": "Activationsd",
|
8 |
"keys": "pred",
|
9 |
+
"softmax": true
|
10 |
},
|
11 |
{
|
12 |
"_target_": "AsDiscreted",
|
13 |
+
"keys": [
|
14 |
+
"pred",
|
15 |
+
"label"
|
16 |
+
],
|
17 |
+
"argmax": [
|
18 |
+
true,
|
19 |
+
false
|
20 |
+
],
|
21 |
+
"to_onehot": 4
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"_target_": "ToTensord",
|
25 |
+
"keys": [
|
26 |
+
"pred",
|
27 |
+
"label"
|
28 |
+
],
|
29 |
+
"device": "@device"
|
30 |
},
|
31 |
{
|
32 |
"_target_": "SaveImaged",
|
|
|
54 |
"_target_": "MetricsSaver",
|
55 |
"save_dir": "@output_dir",
|
56 |
"metrics": [
|
57 |
+
"val_f1",
|
58 |
+
"val_accuracy"
|
59 |
],
|
60 |
"metric_details": [
|
61 |
+
"val_f1"
|
62 |
],
|
63 |
"batch_transform": "$monai.handlers.from_engine(['image_meta_dict'])",
|
64 |
"summary_ops": "*"
|
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.0.
|
4 |
"changelog": {
|
|
|
5 |
"0.0.3": "Update to use MONAI 1.1.0",
|
6 |
"0.0.2": "Update The Torch Vision Transform",
|
7 |
"0.0.1": "initialize the model package structure"
|
|
|
1 |
{
|
2 |
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
|
3 |
+
"version": "0.0.4",
|
4 |
"changelog": {
|
5 |
+
"0.0.4": "Fix evaluation",
|
6 |
"0.0.3": "Update to use MONAI 1.1.0",
|
7 |
"0.0.2": "Update The Torch Vision Transform",
|
8 |
"0.0.1": "initialize the model package structure"
|
configs/train.json
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
"params": "[email protected]()",
|
31 |
"lr": 0.0001
|
32 |
},
|
33 |
-
"max_epochs":
|
34 |
"train": {
|
35 |
"preprocessing": {
|
36 |
"_target_": "Compose",
|
@@ -259,7 +259,8 @@
|
|
259 |
"_target_": "SelectItemsd",
|
260 |
"keys": [
|
261 |
"image",
|
262 |
-
"label"
|
|
|
263 |
]
|
264 |
}
|
265 |
]
|
|
|
30 |
"params": "[email protected]()",
|
31 |
"lr": 0.0001
|
32 |
},
|
33 |
+
"max_epochs": 50,
|
34 |
"train": {
|
35 |
"preprocessing": {
|
36 |
"_target_": "Compose",
|
|
|
259 |
"_target_": "SelectItemsd",
|
260 |
"keys": [
|
261 |
"image",
|
262 |
+
"label",
|
263 |
+
"image_meta_dict"
|
264 |
]
|
265 |
}
|
266 |
]
|