diff --git a/configs/data/im2im/segmentation_plugin.yaml b/configs/data/im2im/segmentation_plugin.yaml index 26bbb7ef..9f3aaf59 100644 --- a/configs/data/im2im/segmentation_plugin.yaml +++ b/configs/data/im2im/segmentation_plugin.yaml @@ -76,6 +76,13 @@ transforms: base_image_key: ${base_image_col} output_name: seg + # remove keys that aren't used for training (e.g. the pre-merged targets) + - _target_: monai.transforms.SelectItemsd + keys: + - ${source_col} + - seg + - ${exclude_mask_col} + - _target_: monai.transforms.ToTensord keys: - ${source_col} @@ -234,6 +241,13 @@ transforms: base_image_key: ${base_image_col} output_name: seg + # remove keys that aren't used for training (e.g. the pre-merged targets) + - _target_: monai.transforms.SelectItemsd + keys: + - ${source_col} + - seg + - ${exclude_mask_col} + - _target_: monai.transforms.ToTensord keys: - ${source_col}