{"record":{"id":"2b8bff846fdae00a","repo":"tensorflow/models","slug":"unknown-augmentation-name-augmentation-name-r","errorCode":null,"errorMessage":"Unknown augmentation name: {augmentation_name!r}","messagePattern":"Unknown augmentation name: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py","lineNumber":191,"sourceCode":"  if augmentation_name == \"vflip\":\n    return apply_vertical_flip(image)\n  if augmentation_name == \"hflip\":\n    return apply_horizontal_flip(image)\n  if augmentation_name == \"rot45\":\n    return apply_fixed_rotation(image, 45, rotation_fill_color)\n  if augmentation_name == \"rot65\":\n    return apply_fixed_rotation(image, 65, rotation_fill_color)\n  if augmentation_name == \"rot90\":\n    return apply_fixed_rotation(image, 90, rotation_fill_color)\n  if augmentation_name == \"blur\":\n    return apply_gaussian_blur(image)\n  if augmentation_name == \"noise03\":\n    return apply_add_noise(image, 0.3)\n  if augmentation_name == \"noise06\":\n    return apply_add_noise(image, 0.6)\n  if augmentation_name == \"cjitter\":\n    return apply_color_jitter(image)\n  raise ValueError(f\"Unknown augmentation name: {augmentation_name!r}\")\n\n\ndef build_augmented_images(\n    image: PIL.Image.Image,\n    augmentations_to_apply: tuple[str, ...],\n    rotation_fill_color: tuple[int, int, int],\n) -> dict[str, PIL.Image.Image]:\n  \"\"\"Creates a dictionary of augmented images keyed by suffix.\n\n  The loader has already reordered ``augmentations_to_apply`` into\n  canonical order, so iterating over it directly is enough to make the\n  on-disk output deterministic.\n\n  Args:\n      image: Original PIL Image.\n      augmentations_to_apply: Sequence of augmentation names to apply,\n        already in canonical order.\n      rotation_fill_color: RGB fill color used to pad rotated images.","sourceCodeStart":173,"sourceCodeEnd":209,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py#L173-L209","documentation":"Error \"Unknown augmentation name: {augmentation_name!r}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py:191 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"}