{"record":{"id":"49c9af6568b94dce","repo":"tensorflow/models","slug":"augmentation-policy-not-supported-49c9af","errorCode":null,"errorMessage":"Augmentation policy {} not supported.","messagePattern":"Augmentation policy (.+?) not supported\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/panoptic/dataloaders/panoptic_deeplab_input.py","lineNumber":146,"sourceCode":"      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(\n            aug_type.type))\n    else:\n      self._augmenter = None\n\n    self._dtype = dtype\n\n    self._sigma = sigma\n    self._gaussian, self._gaussian_size = _compute_gaussian_from_std(\n        self._sigma)\n    self._gaussian = tf.reshape(self._gaussian, shape=[-1])\n    self._small_instance_area_threshold = small_instance_area_threshold\n    self._small_instance_weight = small_instance_weight\n\n  def _resize_and_crop_mask(self, mask, image_info, is_training):\n    \"\"\"Resizes and crops mask using `image_info` dict.\"\"\"\n    height = image_info[0][0]\n    width = image_info[0][1]\n    mask = tf.reshape(mask, shape=[1, height, width, 1])","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/panoptic/dataloaders/panoptic_deeplab_input.py#L128-L164","documentation":"Error \"Augmentation policy {} not supported.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/panoptic/dataloaders/panoptic_deeplab_input.py:146 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"}