tensorflow/models · error · ValueError

Model %s is not supported.

Error message

Model %s is not supported.

What it means

Error "Model %s is not supported." thrown in tensorflow/models.

Source

Thrown at official/legacy/detection/configs/factory.py:39

from official.modeling.hyperparams import params_dict


def config_generator(model):
  """Model function generator."""
  if model == 'retinanet':
    default_config = retinanet_config.RETINANET_CFG
    restrictions = retinanet_config.RETINANET_RESTRICTIONS
  elif model == 'mask_rcnn':
    default_config = maskrcnn_config.MASKRCNN_CFG
    restrictions = maskrcnn_config.MASKRCNN_RESTRICTIONS
  elif model == 'olnmask':
    default_config = olnmask_config.OLNMASK_CFG
    restrictions = olnmask_config.OLNMASK_RESTRICTIONS
  elif model == 'shapemask':
    default_config = shapemask_config.SHAPEMASK_CFG
    restrictions = shapemask_config.SHAPEMASK_RESTRICTIONS
  else:
    raise ValueError('Model %s is not supported.' % model)

  return params_dict.ParamsDict(default_config, restrictions)

View on GitHub (pinned to e006f5f0d5)

When it happens

Trigger: Thrown at official/legacy/detection/configs/factory.py:39 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/fd840418454ad2ce. Report an issue: GitHub.