vertebrae.segmentation
Spatial feature alignment and token materialization for segmentation.
Classes
One flattened, grouped segmentation embedding output. |
Functions
|
Extract, align, sample, and flatten all declared spatial outputs. |
|
Yield flattened spatial outputs one at a time after shared extraction. |
Module Contents
- class vertebrae.segmentation.SegmentationMaterialization[source]
One flattened, grouped segmentation embedding output.
- vertebrae.segmentation.materialize_segmentation_outputs(dataset, extractor, config=None, batch_size=16, resource_profiler=None, memory_config=None)[source]
Extract, align, sample, and flatten all declared spatial outputs.
- Parameters:
dataset (vertebrae.datasets.segmentation.SegmentationDataset)
extractor (Any)
config (Optional[vertebrae.config.SegmentationConfig])
batch_size (int)
resource_profiler (Optional[Any])
memory_config (Optional[vertebrae.config.MemoryConfig])
- Return type:
- vertebrae.segmentation.iter_materialize_segmentation_outputs(dataset, extractor, config=None, batch_size=16, resource_profiler=None, memory_config=None)[source]
Yield flattened spatial outputs one at a time after shared extraction.
- Parameters:
dataset (vertebrae.datasets.segmentation.SegmentationDataset)
extractor (Any)
config (Optional[vertebrae.config.SegmentationConfig])
batch_size (int)
resource_profiler (Optional[Any])
memory_config (Optional[vertebrae.config.MemoryConfig])
- Return type:
Iterator[SegmentationMaterialization]