{"record":{"id":"fd840418454ad2ce","repo":"tensorflow/models","slug":"model-s-is-not-supported","errorCode":null,"errorMessage":"Model %s is not supported.","messagePattern":"Model (.+?) is not supported\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/legacy/detection/configs/factory.py","lineNumber":39,"sourceCode":"from official.modeling.hyperparams import params_dict\n\n\ndef config_generator(model):\n  \"\"\"Model function generator.\"\"\"\n  if model == 'retinanet':\n    default_config = retinanet_config.RETINANET_CFG\n    restrictions = retinanet_config.RETINANET_RESTRICTIONS\n  elif model == 'mask_rcnn':\n    default_config = maskrcnn_config.MASKRCNN_CFG\n    restrictions = maskrcnn_config.MASKRCNN_RESTRICTIONS\n  elif model == 'olnmask':\n    default_config = olnmask_config.OLNMASK_CFG\n    restrictions = olnmask_config.OLNMASK_RESTRICTIONS\n  elif model == 'shapemask':\n    default_config = shapemask_config.SHAPEMASK_CFG\n    restrictions = shapemask_config.SHAPEMASK_RESTRICTIONS\n  else:\n    raise ValueError('Model %s is not supported.' % model)\n\n  return params_dict.ParamsDict(default_config, restrictions)\n","sourceCodeStart":21,"sourceCodeEnd":42,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/legacy/detection/configs/factory.py#L21-L42","documentation":"Error \"Model %s is not supported.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/legacy/detection/configs/factory.py:39 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}