tensorflow/models · error · ConfigError

{context} must be a non-empty list. Allowed values: {list(CA

Error message

{context} must be a non-empty list. Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}.

What it means

Error "{context} must be a non-empty list. Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}." thrown in tensorflow/models.

Source

Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:494

) -> tuple[str, ...]:
  """Validates a prompt's augmentation list against the canonical set.

  Args:
      raw_augmentations: The value read from YAML; expected to be a non-empty
        sequence of canonical augmentation names.
      prompt_name: Prompt name used in error messages.

  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

View on GitHub (pinned to e006f5f0d5)

When it happens

Trigger: Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:494 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/9804b0c9d61d8baf. Report an issue: GitHub.