preprocessing.LazyTileDataset
preprocessing.LazyTileDataset(
cube_path,
feature_bands,
label_band=None,
label_remap=None,
label_default=0,
tile_size=64,
stride=None,
split=None,
train_val_test_split=(0.7, 0.15, 0.15),
split_method='block',
split_block_size_tiles=None,
split_stripe_axis='horizontal',
split_stripe_size_tiles=None,
split_regions=None,
nan_handling='drop',
nan_max_fraction=0.05,
nan_interp_max_dist=3,
cloud_mask=False,
augment=False,
augment_noise_sigma_frac=0.02,
return_window_xy=False,
seed=0,
)Lazy on-the-fly tile sampler reading from a multi-band cube.
Inherits from torch.utils.data.Dataset so it is directly usable with DataLoader(num_workers=N) (including the multi-process / pickle-the-instance case). See the module docstring for the full design rationale.
Methods
| Name | Description |
|---|---|
| summary | Tiny dict summarising the dataset state – useful for prints. |
summary
preprocessing.LazyTileDataset.summary()Tiny dict summarising the dataset state – useful for prints.