{"record":{"id":"9b1187ba18161594","repo":"tensorflow/models","slug":"unsupported-model-type-s-9b1187","errorCode":null,"errorMessage":"Unsupported model type: %s","messagePattern":"Unsupported model type: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/panoptic/serving/export_saved_model.py","lineNumber":109,"sourceCode":"  if FLAGS.params_override:\n    params = hyperparams.override_params_dict(\n        params, FLAGS.params_override, is_strict=True)\n\n  params.validate()\n  params.lock()\n\n  input_image_size = [int(x) for x in FLAGS.input_image_size.split(',')]\n  input_specs = tf_keras.layers.InputSpec(\n      shape=[FLAGS.batch_size, *input_image_size, 3])\n\n  if FLAGS.model == 'panoptic_deeplab':\n    build_model = factory.build_panoptic_deeplab\n    panoptic_module = panoptic_deeplab.PanopticSegmentationModule\n  elif FLAGS.model == 'panoptic_maskrcnn':\n    build_model = factory.build_panoptic_maskrcnn\n    panoptic_module = panoptic_maskrcnn.PanopticSegmentationModule\n  else:\n    raise ValueError('Unsupported model type: %s' % FLAGS.model)\n\n  model = build_model(input_specs=input_specs, model_config=params.task.model)\n  export_module = panoptic_module(\n      params=params,\n      model=model,\n      batch_size=FLAGS.batch_size,\n      input_image_size=[int(x) for x in FLAGS.input_image_size.split(',')],\n      num_channels=3)\n  export_saved_model_lib.export_inference_graph(\n      input_type=FLAGS.input_type,\n      batch_size=FLAGS.batch_size,\n      input_image_size=input_image_size,\n      params=params,\n      checkpoint_path=FLAGS.checkpoint_path,\n      export_dir=FLAGS.export_dir,\n      export_module=export_module,\n      export_checkpoint_subdir='checkpoint',\n      export_saved_model_subdir='saved_model')","sourceCodeStart":91,"sourceCodeEnd":127,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/panoptic/serving/export_saved_model.py#L91-L127","documentation":"Error \"Unsupported model type: %s\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/panoptic/serving/export_saved_model.py:109 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"}