{"record":{"id":"3dc781cd9507ab03","repo":"tensorflow/models","slug":"unknown-augmentation-augmentation-r-in-context","errorCode":null,"errorMessage":"Unknown augmentation {augmentation!r} in {context}. Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}.","messagePattern":"Unknown augmentation (.+?) in (.+?)\\. Allowed values: (.+?)\\.","errorType":"exception","errorClass":"ConfigError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py","lineNumber":501,"sourceCode":"\n  Returns:\n      The augmentations reordered to match ``CANONICAL_AUGMENTATION_ORDER``,\n      so output filenames are deterministic regardless of YAML ordering.\n\n  Raises:\n      ConfigError: If the sequence is empty, not a list, or contains an\n          unknown or duplicate augmentation name.\n  \"\"\"\n  context = f\"prompts.{prompt_name!r}.augmentations\"\n  if not isinstance(raw_augmentations, (list, tuple)) or not raw_augmentations:\n    raise ConfigError(\n        f\"{context} must be a non-empty list. \"\n        f\"Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}.\"\n    )\n  seen = set()\n  for augmentation in raw_augmentations:\n    if augmentation not in CANONICAL_AUGMENTATION_ORDER:\n      raise ConfigError(\n          f\"Unknown augmentation {augmentation!r} in {context}. \"\n          f\"Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}.\"\n      )\n    if augmentation in seen:\n      raise ConfigError(\n          f\"Duplicate augmentation {augmentation!r} in {context}.\"\n      )\n    seen.add(augmentation)\n  return tuple(\n      augmentation\n      for augmentation in CANONICAL_AUGMENTATION_ORDER\n      if augmentation in seen\n  )\n\n\ndef _validate_detection(\n    raw_detection: Any, prompt_name: str\n) -> DetectionConfig:","sourceCodeStart":483,"sourceCodeEnd":519,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py#L483-L519","documentation":"Raised in _validate_augmentations when an augmentation name is not in CANONICAL_AUGMENTATION_ORDER; the config names an unknown augmentation for a prompt.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:501 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Replace the unknown augmentation with one from the allowed list in the message.","Check for typos in the augmentation name.","Copy the augmentations list from the reference config."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}