Skip to content

GridPatchDataset to support patch level transformations #1500

@wyli

Description

@wyli

the current GridPatchDataset supports transformations at image level

class GridPatchDataset(IterableDataset):
"""
Yields patches from arrays read from an input dataset. The patches are chosen in a contiguous grid sampling scheme.
"""
def __init__(
self,
dataset: Sequence,
patch_size: Sequence[int],
start_pos: Sequence[int] = (),
mode: Union[NumpyPadMode, str] = NumpyPadMode.WRAP,
**pad_opts: Dict,
) -> None:

this ticket looks for options of patch level transforms to be applied before yielding the patches

context:
#1473

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions