{"record":{"id":"51c4ec41138a53a3","repo":"tensorflow/models","slug":"segmentation-groundtruth-padded-size-height-wid-51c4ec","errorCode":null,"errorMessage":"segmentation_groundtruth_padded_size ([height, width]) needs to bespecified when segmentation_resize_eval_groundtruth is False.","messagePattern":"segmentation_groundtruth_padded_size \\(\\[height, width\\]\\) needs to bespecified when segmentation_resize_eval_groundtruth is False\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/panoptic/dataloaders/panoptic_maskrcnn_input.py","lineNumber":198,"sourceCode":"        aug_scale_max=aug_scale_max,\n        aug_type=aug_type,\n        skip_crowd_during_training=skip_crowd_during_training,\n        max_num_instances=max_num_instances,\n        include_mask=True,\n        outer_boxes_scale=outer_boxes_scale,\n        mask_crop_size=mask_crop_size,\n        dtype=dtype,\n    )\n\n    self.aug_rand_hflip = aug_rand_hflip\n    self.aug_rand_vflip = aug_rand_vflip\n    self._segmentation_resize_eval_groundtruth = (\n        segmentation_resize_eval_groundtruth\n    )\n    if (not segmentation_resize_eval_groundtruth) and (\n        segmentation_groundtruth_padded_size is None\n    ):\n      raise ValueError(\n          'segmentation_groundtruth_padded_size ([height, width]) needs to be'\n          'specified when segmentation_resize_eval_groundtruth is False.'\n      )\n    self._segmentation_groundtruth_padded_size = (\n        segmentation_groundtruth_padded_size\n    )\n    self._segmentation_ignore_label = segmentation_ignore_label\n    self._panoptic_ignore_label = panoptic_ignore_label\n    self._include_panoptic_masks = include_panoptic_masks\n\n  def _parse_train_data(self, data):\n    \"\"\"Parses data for training.\n\n    Args:\n      data: the decoded tensor dictionary from TfExampleDecoder.\n\n    Returns:\n      image: image tensor that is preproessed to have normalized value and","sourceCodeStart":180,"sourceCodeEnd":216,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/panoptic/dataloaders/panoptic_maskrcnn_input.py#L180-L216","documentation":"Error \"segmentation_groundtruth_padded_size ([height, width]) needs to bespecified when segmentation_resize_eval_groundtruth is False.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/panoptic/dataloaders/panoptic_maskrcnn_input.py:198 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"}