{"record":{"id":"6af0cfb2185a4448","repo":"tensorflow/models","slug":"missing-the-required-key-in-groundtruths-6af0cf","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/panoptic_quality_evaluator.py","lineNumber":160,"sourceCode":"        different parsers under `../dataloader` for more details.\n        Required fields:\n          - category_mask: a numpy array of uint16 of shape [batch_size, H, W].\n          - instance_mask: a numpy array of uint16 of shape [batch_size, H, W].\n\n    Raises:\n      ValueError: if the required prediction or ground-truth fields are not\n        present in the incoming `predictions` or `groundtruths`.\n    \"\"\"\n    groundtruths, predictions = self._convert_to_numpy(groundtruths,\n                                                       predictions)\n    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\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\n    if self._rescale_predictions:\n      for idx in range(len(groundtruths['category_mask'])):\n        image_info = groundtruths['image_info'][idx]\n        groundtruths_ = {\n            'category_mask':\n                _crop_padding(groundtruths['category_mask'][idx], image_info),\n            'instance_mask':\n                _crop_padding(groundtruths['instance_mask'][idx], image_info),\n            }\n        predictions_ = {\n            'category_mask':\n                _crop_padding(predictions['category_mask'][idx], image_info),\n            'instance_mask':\n                _crop_padding(predictions['instance_mask'][idx], image_info),\n            }\n        groundtruths_, predictions_ = self._convert_to_numpy(","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/evaluation/panoptic_quality_evaluator.py#L142-L178","documentation":"Error \"Missing the required key `{}` in groundtruths!\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/evaluation/panoptic_quality_evaluator.py:160 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"}