data
DetectionDataset
Bases: Dataset
PyTorch dataset for slide segmentation tasks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slide_paths |
Sequence[PathLike]
|
list of slides' filepaths. |
required |
mask_paths |
Sequence[PathLike]
|
list of masks' filepaths. Masks are supposed to be tiled pyramidal images. |
required |
patches_paths |
Sequence[PathLike]
|
list of patch csvs' filepaths. Files must be formatted according
to |
required |
stain_matrices_paths |
Optional[Sequence[PathLike]]
|
path to stain matrices .npy files. Each file must contain
a (2, 3) matrice to use for stain separation. If not sppecified while
|
None
|
stain_augmentor |
Optional[StainAugmentor]
|
:class: |
None
|
transforms |
Optional[Sequence[BasicTransform]]
|
list of |
None
|
slide_backend |
str
|
whether to use |
'cucim'
|
SegmentationDataset
Bases: Dataset
PyTorch dataset for slide segmentation tasks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slide_paths |
Sequence[PathLike]
|
list of slides' filepaths. |
required |
mask_paths |
Sequence[PathLike]
|
list of masks' filepaths. Masks are supposed to be tiled pyramidal images. |
required |
patches_paths |
Sequence[PathLike]
|
list of patch csvs' filepaths. Files must be formatted according
to |
required |
stain_matrices_paths |
Optional[Sequence[PathLike]]
|
path to stain matrices .npy files. Each file must contain
a (2, 3) matrice to use for stain separation. If not sppecified while
|
None
|
stain_augmentor |
Optional[StainAugmentor]
|
:class: |
None
|
transforms |
Optional[Sequence[BasicTransform]]
|
list of |
None
|
slide_backend |
str
|
whether to use |
'cucim'
|
SparseSegmentationDataset
Bases: Dataset
PyTorch dataset for slide segmentation tasks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slide_paths |
Sequence[PathLike]
|
list of slides' filepaths. |
required |
mask_paths |
Sequence[PathLike]
|
list of masks' filepaths. Masks are supposed to be tiled pyramidal images. |
required |
patches_paths |
Sequence[PathLike]
|
list of patch csvs' filepaths. Files must be formatted according
to |
required |
stain_matrices_paths |
Optional[Sequence[PathLike]]
|
path to stain matrices .npy files. Each file must contain
a (2, 3) matrice to use for stain separation. If not sppecified while
|
None
|
stain_augmentor |
Optional[StainAugmentor]
|
:class: |
None
|
transforms |
Optional[Sequence[BasicTransform]]
|
list of |
None
|
slide_backend |
str
|
whether to use |
'cucim'
|