Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Added plugin support for multi-channel segmentations #388

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions configs/data/im2im/segmentation_plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ transforms:
reader:
- _target_: cyto_dl.image.io.MonaiBioReader
dimension_order_out: ${eval:'"CZYX" if ${spatial_dims}==3 else "CYX"'}
C: 0
# [TRAIN] Exposing C as a configurable param for multi-channel segs
C: ${target_col1_channel}
amilworks marked this conversation as resolved.
Show resolved Hide resolved
- _target_: monai.transforms.LoadImaged
keys: ${target_col2}
allow_missing_keys: True
reader:
- _target_: cyto_dl.image.io.MonaiBioReader
dimension_order_out: ${eval:'"CZYX" if ${spatial_dims}==3 else "CYX"'}
C: 0
# [TRAIN] Exposing C as a configurable param for multi-channel segs
C: ${target_col2_channel}
- _target_: monai.transforms.ThresholdIntensityd
allow_missing_keys: True
keys:
Expand Down Expand Up @@ -108,14 +110,16 @@ transforms:
reader:
- _target_: cyto_dl.image.io.MonaiBioReader
dimension_order_out: ${eval:'"CZYX" if ${spatial_dims}==3 else "CYX"'}
C: 0
# [TEST] Exposing C as a configurable param for multi-channel segs
C: ${target_col1_channel}
- _target_: monai.transforms.LoadImaged
keys: ${target_col2}
allow_missing_keys: True
reader:
- _target_: cyto_dl.image.io.MonaiBioReader
dimension_order_out: ${eval:'"CZYX" if ${spatial_dims}==3 else "CYX"'}
C: 0
# [TEST] Exposing C as a configurable param for multi-channel segs
C: ${target_col2_channel}
# load merging mask - assumed not to exist by default
- _target_: cyto_dl.image.io.PolygonLoaderd
keys:
Expand Down Expand Up @@ -184,14 +188,16 @@ transforms:
reader:
- _target_: cyto_dl.image.io.MonaiBioReader
dimension_order_out: ${eval:'"CZYX" if ${spatial_dims}==3 else "CYX"'}
C: 0
# [VAL] Exposing C as a configurable param for multi-channel segs
C: ${target_col1_channel}
- _target_: monai.transforms.LoadImaged
keys: ${target_col2}
allow_missing_keys: True
reader:
- _target_: cyto_dl.image.io.MonaiBioReader
dimension_order_out: ${eval:'"CZYX" if ${spatial_dims}==3 else "CYX"'}
C: 0
# [VAL] Exposing C as a configurable param for multi-channel segs
C: ${target_col2_channel}

- _target_: monai.transforms.ThresholdIntensityd
allow_missing_keys: True
Expand Down
Loading