{"record":{"id":"e19cc85ccfe54869","repo":"tensorflow/models","slug":"invalid-augmentation-name-e19cc8","errorCode":null,"errorMessage":"Invalid augmentation_name: {}","messagePattern":"Invalid augmentation_name: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/unified_detector/data_loaders/autoaugment.py","lineNumber":641,"sourceCode":"\n  AutoAugment is from the paper: https://arxiv.org/abs/1805.09501.\n\n  Args:\n    image: `Tensor` of shape [height, width, 3] representing an image.\n    augmentation_name: The name of the AutoAugment policy to use. The available\n      options are `v0` and `test`. `v0` is the policy used for all of the\n      results in the paper and was found to achieve the best results on the COCO\n      dataset. `v1`, `v2` and `v3` are additional good policies found on the\n      COCO dataset that have slight variation in what operations were used\n      during the search procedure along with how many operations are applied in\n      parallel to a single image (2 vs 3).\n\n  Returns:\n    A tuple containing the augmented versions of `image`.\n  \"\"\"\n  available_policies = {'v0': policy_v0, 'test': policy_vtest}\n  if augmentation_name not in available_policies:\n    raise ValueError('Invalid augmentation_name: {}'.format(augmentation_name))\n\n  policy = available_policies[augmentation_name]()\n  # Hparams that will be used for AutoAugment.\n  augmentation_hparams = dict(cutout_const=100, translate_const=250)\n\n  return build_and_apply_nas_policy(policy, image, augmentation_hparams)\n\n\n# Cutout is implemented separately.\n_RAND_TRANSFORMS = [\n    'AutoContrast',\n    'Equalize',\n    'Invert',\n    'Rotate',\n    'Posterize',\n    'Solarize',\n    'Color',\n    'Contrast',","sourceCodeStart":623,"sourceCodeEnd":659,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/unified_detector/data_loaders/autoaugment.py#L623-L659","documentation":"Error \"Invalid augmentation_name: {}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/unified_detector/data_loaders/autoaugment.py:641 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"}