{"record":{"id":"f8dedc431132d08f","repo":"tensorflow/models","slug":"groundtruth-padded-size-height-width-needs-to","errorCode":null,"errorMessage":"groundtruth_padded_size ([height, width]) needs to bespecified when resize_eval_groundtruth is False.","messagePattern":"groundtruth_padded_size \\(\\[height, width\\]\\) needs to bespecified when resize_eval_groundtruth is False\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/panoptic/dataloaders/panoptic_deeplab_input.py","lineNumber":128,"sourceCode":"      ignore_label: `int` the pixel with ignore label will not used for training\n        and evaluation.\n      aug_rand_hflip: `bool`, if True, augment training with random\n        horizontal flip.\n      aug_scale_min: `float`, the minimum scale applied to `output_size` for\n        data augmentation during training.\n      aug_scale_max: `float`, the maximum scale applied to `output_size` for\n        data augmentation during training.\n      aug_type: An optional Augmentation object with params for AutoAugment.\n      sigma: `float`, standard deviation for generating 2D Gaussian to encode\n        centers.\n      small_instance_area_threshold: `int`, small instance area threshold.\n      small_instance_weight: `float`, small instance weight.\n      dtype: `str`, data type. One of {`bfloat16`, `float32`, `float16`}.\n    \"\"\"\n    self._output_size = output_size\n    self._resize_eval_groundtruth = resize_eval_groundtruth\n    if (not resize_eval_groundtruth) and (groundtruth_padded_size is None):\n      raise ValueError(\n          'groundtruth_padded_size ([height, width]) needs to be'\n          'specified when resize_eval_groundtruth is False.')\n    self._groundtruth_padded_size = groundtruth_padded_size\n    self._ignore_label = ignore_label\n\n    # Data augmentation.\n    self._aug_rand_hflip = aug_rand_hflip\n    self._aug_scale_min = aug_scale_min\n    self._aug_scale_max = aug_scale_max\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)\n      else:\n        raise ValueError('Augmentation policy {} not supported.'.format(","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/panoptic/dataloaders/panoptic_deeplab_input.py#L110-L146","documentation":"Error \"groundtruth_padded_size ([height, width]) needs to bespecified when resize_eval_groundtruth is False.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/panoptic/dataloaders/panoptic_deeplab_input.py:128 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"}