tensorflow/models · error · ValueError

TFDS Detection {tfds_name} is not supported

Error message

TFDS Detection {tfds_name} is not supported

What it means

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

Source

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

    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')
  return decoder


def get_segmentation_decoder(tfds_name: str) -> base_decoder.Decoder:
  """Gets segmentation decoder.

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

View on GitHub (pinned to e006f5f0d5)

When it happens

Trigger: Thrown at official/vision/dataloaders/tfds_factory.py:53 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/13dd8e006b4125b3. Report an issue: GitHub.