{"record":{"id":"15b4a32d11e501b7","repo":"tensorflow/models","slug":"segmentation-groundtruth-padded-size-height-wid","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/multiscale_maskconver_input.py","lineNumber":145,"sourceCode":"        by the PQ evaluator.\n      level: `int`, output level, used to generate target assignments.\n      mask_target_level: `int`, target level for panoptic masks, default is 1.\n      num_panoptic_categories: `int`, number of panoptic categories.\n      num_thing_categories: `int1, number of thing categories.\n      gaussian_iou: `float`, used for generating the center heatmaps.\n      aug_type: An optional Augmentation object with params for AutoAugment.\n      dtype: `str`, data type. One of {`bfloat16`, `float32`, `float16`}.\n    \"\"\"\n    super().__init__()\n\n    self.aug_rand_hflip = aug_rand_hflip\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._dtype = dtype\n    self._max_num_instances = max_num_instances\n    self._output_size = output_size\n    self._min_level = min_level\n    self._max_level = max_level\n    self._aug_scale_min = aug_scale_min\n    self._aug_scale_max = aug_scale_max\n    self._segmentation_ignore_label = segmentation_ignore_label\n    self._panoptic_ignore_label = panoptic_ignore_label\n    self.level = level\n    self._mask_target_level = mask_target_level\n    self._num_panoptic_categories = num_panoptic_categories","sourceCodeStart":127,"sourceCodeEnd":163,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/maskconver/dataloaders/multiscale_maskconver_input.py#L127-L163","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/multiscale_maskconver_input.py:145 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"}