-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Is your feature request related to a problem? Please describe.
Now we have AddChannel and AsChannelFirst transforms, need users to manually select expected transform to convert their data to be "channel-first". Several internal researchers got confused by the wrong transform, especially when their image and label have different shapes(maybe image is 3 channels data and channel last, label is single channel data and doesn't have channel dim).
Actually, we can automatically adjust channel dim for most cases based on the spatial_size from meta_data. If advanced users really want to do some special logic, they can use AddChannel and AsChannelFirst directly.