<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/configs/semantic_segmentation.py) |

Semantic segmentation configuration definition.

## Classes

[`class DataConfig`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/DataConfig): Input config for training.

[`class DenseFeatureConfig`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/DenseFeatureConfig): Config for dense features, such as RGB pixels, masks, heatmaps.

[`class Evaluation`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/Evaluation): Evaluation config.

[`class ExportConfig`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/ExportConfig): Model export config.

[`class Losses`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/Losses): Loss function config.

[`class MaskScoringHead`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/MaskScoringHead): Mask Scoring head config.

[`class SegmentationHead`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/SegmentationHead): Segmentation head config.

[`class SemanticSegmentationModel`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/SemanticSegmentationModel): Semantic segmentation model config.

[`class SemanticSegmentationTask`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/SemanticSegmentationTask): The model config.

## Functions

[`mnv2_deeplabv3_cityscapes(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/mnv2_deeplabv3_cityscapes): Image segmentation on cityscapes with mobilenetv2 deeplabv3.

[`mnv2_deeplabv3_pascal(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/mnv2_deeplabv3_pascal): Image segmentation on pascal with mobilenetv2 deeplabv3.

[`mnv2_deeplabv3plus_cityscapes(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/mnv2_deeplabv3plus_cityscapes): Image segmentation on cityscapes with mobilenetv2 deeplabv3plus.

[`seg_deeplabv3_pascal(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/seg_deeplabv3_pascal): Image segmentation on pascal voc with resnet deeplabv3.

[`seg_deeplabv3plus_cityscapes(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/seg_deeplabv3plus_cityscapes): Image segmentation on cityscapes with resnet deeplabv3+.

[`seg_deeplabv3plus_pascal(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/seg_deeplabv3plus_pascal): Image segmentation on pascal voc with resnet deeplabv3+.

[`seg_resnetfpn_pascal(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/seg_resnetfpn_pascal): Image segmentation on pascal voc with resnet-fpn.

[`semantic_segmentation(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/configs/semantic_segmentation/semantic_segmentation): Semantic segmentation general.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| CITYSCAPES_INPUT_PATH_BASE | `'cityscapes'` |
| CITYSCAPES_TRAIN_EXAMPLES | `2975` |
| CITYSCAPES_VAL_EXAMPLES | `500` |
| PASCAL_INPUT_PATH_BASE | `'gs://**/pascal_voc_seg'` |
| PASCAL_TRAIN_EXAMPLES | `10582` |
| PASCAL_VAL_EXAMPLES | `1449` |

<br />