{"record":{"id":"404037b7b3228c93","repo":"tensorflow/models","slug":"tfds-classification-tfds-name-is-not-supported","errorCode":null,"errorMessage":"TFDS Classification {tfds_name} is not supported","messagePattern":"TFDS Classification (.+?) is not supported","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/dataloaders/tfds_factory.py","lineNumber":35,"sourceCode":"from official.vision.dataloaders import tfds_detection_decoders\nfrom official.vision.dataloaders import tfds_segmentation_decoders\nfrom official.vision.dataloaders import tfds_classification_decoders\n\n\ndef get_classification_decoder(tfds_name: str) -> base_decoder.Decoder:\n  \"\"\"Gets classification decoder.\n\n  Args:\n    tfds_name: `str`, name of the tfds classification 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_classification_decoders.TFDS_ID_TO_DECODER_MAP:\n    decoder = tfds_classification_decoders.TFDS_ID_TO_DECODER_MAP[tfds_name]()\n  else:\n    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')","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/dataloaders/tfds_factory.py#L17-L53","documentation":"Raised in get_classification_decoder when the tfds_name is not in the registered TFDS classification decoder map.","triggerScenarios":"Thrown at official/vision/dataloaders/tfds_factory.py:35 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a TFDS dataset name covered by tfds_classification_decoders","Implement and register a decoder in TFDS_ID_TO_DECODER_MAP for your 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"}