Skip to content

RandZoom on batch #2929

Description

@bhashemian

Is your feature request related to a problem? Please describe.
RandZoom uses Zoom which uses torch.nn.functional.interpolate under the hood to extract randomly zoomed images. Although torch.nn.functional.interpolate is capable of being applied on batch x channels x [optional depth] x [optional height] x width, Zoom and RandZoom don't.

Instead, they treat the channel dimension as spatial dimension. This is causing an issue since there is no error and warning if user apply it on a batched dataset.

This requires to distinguish between 3D multi-channel images vs 2D multi-channel batched images. Although an automatic logic would be hard to achieve, a simple flag can do the work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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