{"record":{"id":"e82d3ae4c0711e57","repo":"tensorflow/models","slug":"missing-the-required-key-in-groundtruths-e82d3a","errorCode":null,"errorMessage":"Missing the required key `{}` in groundtruths!","messagePattern":"Missing the required key `(.+?)` in groundtruths!","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/evaluation/coco_evaluator.py","lineNumber":378,"sourceCode":"    for k in self._required_prediction_fields:\n      if k not in predictions:\n        raise ValueError(\n            'Missing the required key `{}` in predictions!'.format(k))\n    if self._need_rescale_bboxes:\n      self._process_bbox_predictions(predictions)\n    if self._need_rescale_keypoints:\n      self._process_keypoints_predictions(predictions)\n    for k, v in six.iteritems(predictions):\n      if k not in self._predictions:\n        self._predictions[k] = [v]\n      else:\n        self._predictions[k].append(v)\n\n    if not self._annotation_file:\n      assert groundtruths\n      for k in self._required_groundtruth_fields:\n        if k not in groundtruths:\n          raise ValueError(\n              'Missing the required key `{}` in groundtruths!'.format(k))\n      for k, v in six.iteritems(groundtruths):\n        if k not in self._groundtruths:\n          self._groundtruths[k] = [v]\n        else:\n          self._groundtruths[k].append(v)\n","sourceCodeStart":360,"sourceCodeEnd":385,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/evaluation/coco_evaluator.py#L360-L385","documentation":"Error \"Missing the required key `{}` in groundtruths!\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/evaluation/coco_evaluator.py:378 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"}