PatchDataset#
- class patch_denoise.gpu.dataloader.PatchDataset(input_data: Tensor, *, patch_shape: tuple[int, ...], patch_overlap: tuple[int, ...], noise_map=None, mask: Tensor | NDArray | None = None, mask_threshold=50)[source]#
Bases:
objectGPU-resident collection of patches, batch-gathered from
input_data.input_datais expected to already live on the target device: patches are then extracted with a single vectorized advanced-index gather per batch (seeget_batch()), with no host-device transfer or per-item Python loop in the hot path.Methods
__init__Gather patches
[start, stop)and their top-left corner indices.