{"record":{"id":"887b68450d00048a","repo":"tensorflow/models","slug":"detection-with-center-point-is-only-available","errorCode":null,"errorMessage":"Detection with center point is only available ","messagePattern":"Detection with center point is only available ","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"official/projects/centernet/configs/centernet.py","lineNumber":180,"sourceCode":"  losses: Losses = dataclasses.field(default_factory=Losses)\n  gradient_clip_norm: float = 10.0\n  per_category_metrics: bool = False\n  weight_decay: float = 5e-4\n  # Load checkpoints\n  init_checkpoint: Optional[str] = None\n  init_checkpoint_modules: str = 'all'\n  annotation_file: Optional[str] = None\n\n  def get_output_length_dict(self):\n    task_outputs = {}\n    if self.subtasks.detection and self.subtasks.detection.use_centers:\n      task_outputs.update({\n          'ct_heatmaps': self.model.num_classes,\n          'ct_offset': 2,\n          'ct_size': 2\n      })\n    else:\n      raise ValueError('Detection with center point is only available ')\n    return task_outputs\n\n\nCOCO_INPUT_PATH_BASE = 'coco'\nCOCO_TRAIN_EXAMPLES = 118287\nCOCO_VAL_EXAMPLES = 5000\n\n\n@exp_factory.register_config_factory('centernet_hourglass_coco')\ndef centernet_hourglass_coco() -> cfg.ExperimentConfig:\n  \"\"\"COCO object detection with CenterNet.\"\"\"\n  train_batch_size = 128\n  eval_batch_size = 8\n  steps_per_epoch = COCO_TRAIN_EXAMPLES // train_batch_size\n\n  config = cfg.ExperimentConfig(\n      task=CenterNetTask(\n          annotation_file=os.path.join(COCO_INPUT_PATH_BASE,","sourceCodeStart":162,"sourceCodeEnd":198,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/centernet/configs/centernet.py#L162-L198","documentation":"Error \"Detection with center point is only available \" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/centernet/configs/centernet.py:180 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"}