{"record":{"id":"c8bf9824a44c3fc8","repo":"tensorflow/models","slug":"augmentation-policy-not-supported-c8bf98","errorCode":null,"errorMessage":"Augmentation policy {} not supported.","messagePattern":"Augmentation policy (.+?) not supported\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/dataloaders/classification_input.py","lineNumber":140,"sourceCode":"      self._dtype = tf.bfloat16\n    else:\n      raise ValueError('dtype {!r} is not supported!'.format(dtype))\n    if aug_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      elif aug_type.type == 'randaug':\n        self._augmenter = augment.RandAugment(\n            num_layers=aug_type.randaug.num_layers,\n            magnitude=aug_type.randaug.magnitude,\n            cutout_const=aug_type.randaug.cutout_const,\n            translate_const=aug_type.randaug.translate_const,\n            prob_to_apply=aug_type.randaug.prob_to_apply,\n            exclude_ops=aug_type.randaug.exclude_ops)\n      else:\n        raise ValueError('Augmentation policy {} not supported.'.format(\n            aug_type.type))\n    else:\n      self._augmenter = None\n    self._label_field_key = label_field_key\n    self._color_jitter = color_jitter\n    if random_erasing:\n      self._random_erasing = augment.RandomErasing(\n          probability=random_erasing.probability,\n          min_area=random_erasing.min_area,\n          max_area=random_erasing.max_area,\n          min_aspect=random_erasing.min_aspect,\n          max_aspect=random_erasing.max_aspect,\n          min_count=random_erasing.min_count,\n          max_count=random_erasing.max_count,\n          trials=random_erasing.trials)\n    else:\n      self._random_erasing = None\n    self._is_multilabel = is_multilabel","sourceCodeStart":122,"sourceCodeEnd":158,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/dataloaders/classification_input.py#L122-L158","documentation":"Error \"Augmentation policy {} not supported.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/dataloaders/classification_input.py:140 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"}