Skip to content

Commit

Permalink
remove unnecessary images from batch (#445)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Morris <[email protected]>
  • Loading branch information
benjijamorris and Benjamin Morris authored Nov 20, 2024
1 parent de63972 commit 71659df
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions configs/data/im2im/segmentation_plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 71659df

Please sign in to comment.