OverlapTilingStrategy#
- class deepinv.distributed.strategies.OverlapTilingStrategy(img_size, tiling_dims=None, patch_size=256, overlap=32, stride=None, pad_mode='reflect', **kwargs)[source]#
Bases:
DistributedSignalStrategySmart tiling strategy with padding for N-dimensional data.
- This strategy:
Creates uniform patches with receptive field padding
Batches patches for efficient processing
Uses optimized tensor operations for reduction
- Parameters:
img_size (Sequence[int]) – full shape of the signal tensor, including batch and channel dimensions (e.g.,
(B, C, H, W)).tiling_dims (int | tuple[int, ...] | None) – dimensions to tile. - If
None, defaults to last N dimensions where N islen(patch_size)ifpatch_sizeistuple, else2. - Ifint, tiles only that dimension. - Iftuple, tiles specified dimensions.patch_size (int | tuple[int, ...]) – size of each patch, supports non-cuboid patch size.
overlap (int | tuple[int, ...]) – padding radius around each patch, supports non-cuboid receptive field size.
stride (int | tuple[int, ...] | None) – stride between patches. Default to the same value as
patch_sizefor non-overlapping patches.pad_mode (str) – padding mode for edge patches.