{"record":{"id":"e5afc02440df15b2","repo":"tensorflow/models","slug":"detection-module-not-implemented-for-model-e5afc0","errorCode":null,"errorMessage":"Detection module not implemented for {} model.","messagePattern":"Detection module not implemented for (.+?) model\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/qat/vision/serving/export_module.py","lineNumber":59,"sourceCode":"    model = super()._build_model()\n    input_specs = tf_keras.layers.InputSpec(shape=[self._batch_size] +\n                                            self._input_image_size + [3])\n    return qat_factory.build_qat_segmentation_model(\n        model, self.params.task.quantization, input_specs)\n\n\nclass DetectionModule(detection.DetectionModule):\n  \"\"\"Detection Module.\"\"\"\n\n  def _build_model(self):\n    model = super()._build_model()\n\n    if isinstance(self.params.task.model, configs.retinanet.RetinaNet):\n      model = qat_factory.build_qat_retinanet(model,\n                                              self.params.task.quantization,\n                                              self.params.task.model)\n    else:\n      raise ValueError('Detection module not implemented for {} model.'.format(\n          type(self.params.task.model)))\n\n    return model\n","sourceCodeStart":41,"sourceCodeEnd":63,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/qat/vision/serving/export_module.py#L41-L63","documentation":"Error \"Detection module not implemented for {} model.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/qat/vision/serving/export_module.py:59 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"}