tensorflow/models · error · ValueError

TFDS Classification {tfds_name} is not supported

Error message

TFDS Classification {tfds_name} is not supported

What it means

Error "TFDS Classification {tfds_name} is not supported" thrown in tensorflow/models.

Source

Thrown at official/vision/dataloaders/tfds_factory.py:35

from official.vision.dataloaders import tfds_detection_decoders
from official.vision.dataloaders import tfds_segmentation_decoders
from official.vision.dataloaders import tfds_classification_decoders


def get_classification_decoder(tfds_name: str) -> base_decoder.Decoder:
  """Gets classification decoder.

  Args:
    tfds_name: `str`, name of the tfds classification decoder.
  Returns:
    `base_decoder.Decoder` instance.
  Raises:
    ValueError if the tfds_name doesn't exist in the available decoders.
  """
  if tfds_name in tfds_classification_decoders.TFDS_ID_TO_DECODER_MAP:
    decoder = tfds_classification_decoders.TFDS_ID_TO_DECODER_MAP[tfds_name]()
  else:
    raise ValueError(
        f'TFDS Classification {tfds_name} is not supported')
  return decoder


def get_detection_decoder(tfds_name: str) -> base_decoder.Decoder:
  """Gets detection decoder.

  Args:
    tfds_name: `str`, name of the tfds detection decoder.
  Returns:
    `base_decoder.Decoder` instance.
  Raises:
    ValueError if the tfds_name doesn't exist in the available decoders.
  """
  if tfds_name in tfds_detection_decoders.TFDS_ID_TO_DECODER_MAP:
    decoder = tfds_detection_decoders.TFDS_ID_TO_DECODER_MAP[tfds_name]()
  else:
    raise ValueError(f'TFDS Detection {tfds_name} is not supported')

View on GitHub (pinned to e006f5f0d5)

When it happens

Trigger: Thrown at official/vision/dataloaders/tfds_factory.py:35 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tensorflow/models@e006f5f0d5 (2026-08-24). Data as JSON: /api/errors/404037b7b3228c93. Report an issue: GitHub.