{"record":{"id":"58bad40fe7b653e0","repo":"tensorflow/models","slug":"tfds-segmentation-tfds-name-is-not-supported","errorCode":null,"errorMessage":"TFDS Segmentation {tfds_name} is not supported","messagePattern":"TFDS Segmentation (.+?) is not supported","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/dataloaders/tfds_factory.py","lineNumber":70,"sourceCode":"  else:\n    raise ValueError(f'TFDS Detection {tfds_name} is not supported')\n  return decoder\n\n\ndef get_segmentation_decoder(tfds_name: str) -> base_decoder.Decoder:\n  \"\"\"Gets segmentation decoder.\n\n  Args:\n    tfds_name: `str`, name of the tfds segmentation decoder.\n  Returns:\n    `base_decoder.Decoder` instance.\n  Raises:\n    ValueError if the tfds_name doesn't exist in the available decoders.\n  \"\"\"\n  if tfds_name in tfds_segmentation_decoders.TFDS_ID_TO_DECODER_MAP:\n    decoder = tfds_segmentation_decoders.TFDS_ID_TO_DECODER_MAP[tfds_name]()\n  else:\n    raise ValueError(f'TFDS Segmentation {tfds_name} is not supported')\n  return decoder\n","sourceCodeStart":52,"sourceCodeEnd":72,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/dataloaders/tfds_factory.py#L52-L72","documentation":"Raised in get_segmentation_decoder when the tfds_name is not in the registered TFDS segmentation decoder map.","triggerScenarios":"Thrown at official/vision/dataloaders/tfds_factory.py:70 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a registered segmentation TFDS dataset","Contribute a decoder to tfds_segmentation_decoders for the new dataset"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}