{"record":{"id":"13dd8e006b4125b3","repo":"tensorflow/models","slug":"tfds-detection-tfds-name-is-not-supported","errorCode":null,"errorMessage":"TFDS Detection {tfds_name} is not supported","messagePattern":"TFDS Detection (.+?) is not supported","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/dataloaders/tfds_factory.py","lineNumber":53,"sourceCode":"    raise ValueError(\n        f'TFDS Classification {tfds_name} is not supported')\n  return decoder\n\n\ndef get_detection_decoder(tfds_name: str) -> base_decoder.Decoder:\n  \"\"\"Gets detection decoder.\n\n  Args:\n    tfds_name: `str`, name of the tfds detection 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_detection_decoders.TFDS_ID_TO_DECODER_MAP:\n    decoder = tfds_detection_decoders.TFDS_ID_TO_DECODER_MAP[tfds_name]()\n  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","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/dataloaders/tfds_factory.py#L35-L71","documentation":"Raised in get_detection_decoder when the tfds_name is not in the registered TFDS detection decoder map.","triggerScenarios":"Thrown at official/vision/dataloaders/tfds_factory.py:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pick a TFDS detection dataset with a registered decoder (e.g. coco variants)","Add a custom decoder to tfds_detection_decoders and its map entry"],"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"}