MONAI icon indicating copy to clipboard operation
MONAI copied to clipboard

Option to Disable `Compose` list/tuple Expansion

Open ericspod opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Here Compose will expand any data item which is a list or tuple and apply transforms individually to each element. This is used when a transform produces multiple outputs. This isn't always wanted if one wants to pass something iterable to transform as-is.

Describe the solution you'd like A constructor argument to Compose to disable this behaviour.

Describe alternatives you've considered Data needs to be wrapped as a dictionary or something not a list/tuple to route around this issue.

Additional context This is using transforms for data processing rather than training so a somewhat niche use case.

ericspod avatar Jul 19 '24 13:07 ericspod

Look like the similar request with this one: https://github.com/Project-MONAI/MONAI/issues/7565

KumoLiu avatar Jul 19 '24 13:07 KumoLiu