Skip to content

RandAffine/RandAffined skipping the resampling if do_transform is False #2124

@wyli

Description

@wyli

Is your feature request related to a problem? Please describe.
when do_transform is False and the spatial_size isn't set, the resampling step of RandAffine could be skipped for better performance, for example:

if self._do_transform:
grid = self.rand_affine_grid(spatial_size=sp_size)
else:
grid = create_grid(spatial_size=sp_size)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions