{"record":{"id":"81a67d00242518e8","repo":"tensorflow/models","slug":"segmentation-groundtruth-padded-size-height-wid-81a67d","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":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/maskconver/dataloaders/panoptic_maskrcnn_input.py","lineNumber":193,"sourceCode":"        anchor_size=anchor_size,\n        rpn_match_threshold=rpn_match_threshold,\n        rpn_unmatched_threshold=rpn_unmatched_threshold,\n        rpn_batch_size_per_im=rpn_batch_size_per_im,\n        rpn_fg_fraction=rpn_fg_fraction,\n        aug_rand_hflip=False,\n        aug_scale_min=aug_scale_min,\n        aug_scale_max=aug_scale_max,\n        skip_crowd_during_training=skip_crowd_during_training,\n        max_num_instances=max_num_instances,\n        include_mask=True,\n        mask_crop_size=mask_crop_size,\n        dtype=dtype)\n\n    self.aug_rand_hflip = aug_rand_hflip\n    self._segmentation_resize_eval_groundtruth = segmentation_resize_eval_groundtruth\n    if (not segmentation_resize_eval_groundtruth) and (\n        segmentation_groundtruth_padded_size is None):\n      raise ValueError(\n          'segmentation_groundtruth_padded_size ([height, width]) needs to be'\n          'specified when segmentation_resize_eval_groundtruth is False.')\n    self._segmentation_groundtruth_padded_size = segmentation_groundtruth_padded_size\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    self.level = level\n    self._num_panoptic_categories = num_panoptic_categories\n    self._num_thing_categories = num_thing_categories\n    self._gaussian_iou = gaussian_iou\n    self._max_num_stuff_centers = max_num_stuff_centers\n\n    if aug_type and aug_type.type:\n      if aug_type.type == 'autoaug':\n        self._augmenter = augment.AutoAugment(\n            augmentation_name=aug_type.autoaug.augmentation_name,\n            cutout_const=aug_type.autoaug.cutout_const,\n            translate_const=aug_type.autoaug.translate_const)","sourceCodeStart":175,"sourceCodeEnd":211,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/maskconver/dataloaders/panoptic_maskrcnn_input.py#L175-L211","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/maskconver/dataloaders/panoptic_maskrcnn_input.py:193 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"}