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.
Is your feature request related to a problem? Please describe.
Now we have
AddChannelandAsChannelFirsttransforms, 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 theirimageandlabelhave different shapes(maybeimageis 3 channels data and channel last,labelis single channel data and doesn't have channel dim).Actually, we can automatically adjust channel dim for most cases based on the
spatial_sizefrom meta_data. If advanced users really want to do some special logic, they can useAddChannelandAsChannelFirstdirectly.