{"record":{"id":"9647b06933fb5bbc","repo":"tensorflow/models","slug":"augmentation-policy-not-supported-9647b0","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/multiscale_maskconver_input.py","lineNumber":176,"sourceCode":"    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\n    self._num_thing_categories = num_thing_categories\n    self._gaussian_iou = gaussian_iou\n    self.fpn_low_range = fpn_low_range\n    self.fpn_high_range = fpn_high_range\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    \"\"\"\n    # Flips image randomly during training.\n    if self.aug_rand_hflip:","sourceCodeStart":158,"sourceCodeEnd":194,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/maskconver/dataloaders/multiscale_maskconver_input.py#L158-L194","documentation":"Error \"Augmentation policy {} not supported.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/maskconver/dataloaders/multiscale_maskconver_input.py:176 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"}