Skip to content

Add AutoAdjustChannel transform #1673

Description

@Nic-Ma

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.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions