{"record":{"id":"b839297adcd31d12","repo":"tensorflow/models","slug":"augmentation-policy-not-supported-b83929","errorCode":null,"errorMessage":"Augmentation policy {} not supported.","messagePattern":"Augmentation policy (.+?) not supported\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/maskconver/dataloaders/panoptic_maskrcnn_input.py","lineNumber":213,"sourceCode":"          '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)\n      else:\n        raise ValueError('Augmentation policy {} not supported.'.format(\n            aug_type.type))\n    else:\n      self._augmenter = None\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\n        dimension [output_size[0], output_size[1], 3]\n      labels: a dictionary of tensors used for training. The following describes\n        {key: value} pairs in the dictionary.\n        image_info: a 2D `Tensor` that encodes the information of the image and\n          the applied preprocessing. It is in the format of\n          [[original_height, original_width], [scaled_height, scaled_width]],","sourceCodeStart":195,"sourceCodeEnd":231,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/maskconver/dataloaders/panoptic_maskrcnn_input.py#L195-L231","documentation":"Error \"Augmentation policy {} not supported.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/maskconver/dataloaders/panoptic_maskrcnn_input.py:213 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"}