{"record":{"id":"078bf7859969e129","repo":"tensorflow/models","slug":"augmentation-policy-not-supported-078bf7","errorCode":null,"errorMessage":"Augmentation policy {} not supported.","messagePattern":"Augmentation policy (.+?) not supported\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/dataloaders/video_input.py","lineNumber":333,"sourceCode":"    aug_type = input_params.aug_type\n    if aug_type is not None:\n      if aug_type.type == 'autoaug':\n        logging.info('Using AutoAugment.')\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        logging.info('Using RandAugment.')\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(\n            'Augmentation policy {} not supported.'.format(aug_type.type))\n    else:\n      self._augmenter = None\n      if self._random_rotation:\n        logging.info('Using standard augmentation with rotation.')\n      else:\n        logging.info('Using standard augmentation without rotation.')\n\n  def _parse_train_data(\n      self, decoded_tensors: Dict[str, tf.Tensor]\n  ) -> Tuple[Dict[str, tf.Tensor], tf.Tensor]:\n    \"\"\"Parses data for training.\"\"\"\n    # Process image and label.\n    image = decoded_tensors[self._image_key]\n    image = process_image(\n        image=image,\n        is_training=True,\n        num_frames=self._num_frames,","sourceCodeStart":315,"sourceCodeEnd":351,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/dataloaders/video_input.py#L315-L351","documentation":"Error \"Augmentation policy {} not supported.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/dataloaders/video_input.py:333 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"}