diff --git a/models/spleen_deepedit_annotation/configs/evaluate.json b/models/spleen_deepedit_annotation/configs/evaluate.json index 42262b4b..4e3b2a52 100644 --- a/models/spleen_deepedit_annotation/configs/evaluate.json +++ b/models/spleen_deepedit_annotation/configs/evaluate.json @@ -24,7 +24,6 @@ "_target_": "SaveImaged", "_disabled_": true, "keys": "pred", - "meta_keys": "pred_meta_dict", "output_dir": "@output_dir", "resample": false, "squeeze_end_dims": true @@ -53,7 +52,7 @@ "metric_details": [ "val_mean_dice" ], - "batch_transform": "$monai.handlers.from_engine(['image_meta_dict'])", + "batch_transform": "$lambda x: [xx['image'].meta for xx in x]", "summary_ops": "*" } ], diff --git a/models/spleen_deepedit_annotation/configs/inference.json b/models/spleen_deepedit_annotation/configs/inference.json index b5e34b50..f4ff41a9 100644 --- a/models/spleen_deepedit_annotation/configs/inference.json +++ b/models/spleen_deepedit_annotation/configs/inference.json @@ -163,7 +163,6 @@ "keys": "pred", "transform": "@preprocessing", "orig_keys": "@image_key", - "meta_key_postfix": "meta_dict", "nearest_interp": false, "to_tensor": true }, @@ -175,7 +174,6 @@ { "_target_": "SaveImaged", "keys": "pred", - "meta_keys": "pred_meta_dict", "output_dir": "@output_dir", "output_ext": "@output_ext", "output_dtype": "@output_dtype",