tensorflow/models · error · ConfigError
Unknown augmentation
Error message
Unknown augmentation {augmentation!r} in {context}. Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}. What it means
Raised in _validate_augmentations when an augmentation name is not in CANONICAL_AUGMENTATION_ORDER; the config names an unknown augmentation for a prompt.
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.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:501 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tensorflow/models@e006f5f0d5 (2026-08-24).
Data as JSON: /api/errors/3dc781cd9507ab03.
Report an issue: GitHub.
Appendix: source
Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:501
Returns:
The augmentations reordered to match ``CANONICAL_AUGMENTATION_ORDER``,
so output filenames are deterministic regardless of YAML ordering.
Raises:
ConfigError: If the sequence is empty, not a list, or contains an
unknown or duplicate augmentation name.
"""
context = f"prompts.{prompt_name!r}.augmentations"
if not isinstance(raw_augmentations, (list, tuple)) or not raw_augmentations:
raise ConfigError(
f"{context} must be a non-empty list. "
f"Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}."
)
seen = set()
for augmentation in raw_augmentations:
if augmentation not in CANONICAL_AUGMENTATION_ORDER:
raise ConfigError(
f"Unknown augmentation {augmentation!r} in {context}. "
f"Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}."
)
if augmentation in seen:
raise ConfigError(
f"Duplicate augmentation {augmentation!r} in {context}."
)
seen.add(augmentation)
return tuple(
augmentation
for augmentation in CANONICAL_AUGMENTATION_ORDER
if augmentation in seen
)
def _validate_detection(
raw_detection: Any, prompt_name: str
) -> DetectionConfig:View on GitHub (pinned to e006f5f0d5)