Skip to content

SegmentationPipeline

Pre-built segmentation pipeline

PARAMETER DESCRIPTION
data_fetcher

data fetcher

TYPE: DataFetcher

process_area

process area

TYPE: ProcessArea

data_preprocessor

data preprocessor

TYPE: DataPreprocessor | None

model

model

TYPE: SegmentationModel

exporter

exporter

TYPE: SegmentationExporter

batch_size

batch size

TYPE: int DEFAULT: 1

num_workers

number of workers

TYPE: int DEFAULT: 4

from_config classmethod

Creates a segmentation pipeline from the configuration.

PARAMETER DESCRIPTION
config

configuration

TYPE: SegmentationPipelineConfig

RETURNS DESCRIPTION
SegmentationPipeline

segmentation pipeline

__call__

Runs the segmentation pipeline.


SegmentationPipelineConfig

Bases: pydantic.BaseModel

Configuration for the from_config class method of SegmentationPipeline

ATTRIBUTE DESCRIPTION
data_fetcher_config

configuration of the data fetcher

TYPE: DataFetcherConfig

process_area_config

configuration of the process area

TYPE: ProcessAreaConfig

data_preprocessor_config

configuration of the data preprocessor

TYPE: DataPreprocessorConfig | None

segmentation_model_config

configuration of the model

TYPE: ModelConfig

exporter_config

configuration of the exporter

TYPE: ExporterConfig

batch_size

batch size

TYPE: int

num_workers

number of workers

TYPE: int


DataFetcherConfig

Bases: pydantic.BaseModel

Configuration for data fetchers

ATTRIBUTE DESCRIPTION
name

name of the data fetcher

TYPE: str

config

configuration of the data fetcher

TYPE: CompositeFetcherConfig | VRTFetcherConfig | WMSFetcherConfig


DataPreprocessorConfig

Bases: pydantic.BaseModel

Configuration for data preprocessors

ATTRIBUTE DESCRIPTION
name

name of the data preprocessor

TYPE: str | None

config

configuration of the data preprocessor

TYPE: CompositePreprocessorConfig | NormalizePreprocessorConfig | StandardizePreprocessorConfig | None


ModelConfig

Bases: pydantic.BaseModel

Configuration for models

ATTRIBUTE DESCRIPTION
name

name of the model

TYPE: str

config

configuration of the model

TYPE: SegmentationModelConfig


ExporterConfig

Bases: pydantic.BaseModel

Configuration for exporters

ATTRIBUTE DESCRIPTION
name

name of the exporter

TYPE: str

config

configuration of the exporter

TYPE: SegmentationExporterConfig