{"record":{"id":"8db7586c8529ff8a","repo":"tensorflow/models","slug":"please-run-accumulate-first","errorCode":null,"errorMessage":"Please run accumulate() first","messagePattern":"Please run accumulate\\(\\) first","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"official/legacy/detection/evaluation/coco_evaluator.py","lineNumber":147,"sourceCode":"      )\n      stats[5] = _summarize(\n          1,\n          area_rng='large',\n      )\n\n      stats[6] = _summarize(0, max_dets=self.params.maxDets[0])  # 10\n      stats[7] = _summarize(0, max_dets=self.params.maxDets[1])  # 20\n      stats[8] = _summarize(0, max_dets=self.params.maxDets[2])  # 50\n      stats[9] = _summarize(0, max_dets=self.params.maxDets[3])  # 100\n      stats[10] = _summarize(0, max_dets=self.params.maxDets[4])  # 200\n\n      stats[11] = _summarize(0, area_rng='small', max_dets=10)\n      stats[12] = _summarize(0, area_rng='medium', max_dets=10)\n      stats[13] = _summarize(0, area_rng='large', max_dets=10)\n      return stats\n\n    if not self.eval:\n      raise Exception('Please run accumulate() first')\n    summarize = _summarize_dets\n    self.stats = summarize()\n\n\nclass OlnCOCOevalXclassWrapper(OlnCOCOevalWrapper):\n  \"\"\"COCOeval wrapper class.\n\n  Rewritten based on cocoapi: (pycocotools/cocoeval.py)\n  Delta to the standard cocoapi:\n    Detections that hit the 'seen' class objects are ignored in top-K proposals.\n\n  This class wraps COCOEVAL API object, which provides the following additional\n  functionalities:\n    1. Include ignore-class split (e.g., 'voc' or 'nonvoc').\n    2. Do not count (or ignore) box proposals hitting ignore-class when\n       evaluating Average Recall at top-K proposals.\n  \"\"\"\n","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/legacy/detection/evaluation/coco_evaluator.py#L129-L165","documentation":"Error \"Please run accumulate() first\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/legacy/detection/evaluation/coco_evaluator.py:147 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"}