tensorflow/models · error · ConfigurationError

Error validating configuration structure in

Error message

Error validating configuration structure in {yaml_path}: {err}

What it means

Wrapper raised in PipelineConfig.from_yaml around structured validation of the parsed YAML sections: while constructing the typed sub-configs (SAM3Config, DINOv3Config, DetectionConfig, TrackingConfig, VisualizationConfig) a ValidationError or KeyError escaped — typically a missing required key or a wrong field type in one of the config sections. The original error text is appended, and the file path identifies which config is at fault.

Solutions

  1. Read the appended validation error to find the failing section and field
  2. Add missing required keys under models.sam3, models.dinov3, detection, tracking, or visualization
  3. Correct field types (strings vs numbers vs lists) to match the config schema
  4. Compare against a known-good example YAML for the pipeline
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at official/projects/waste_identification_ml/model_inference_with_tracking/sam3_dinov3_tracking_pipeline/config_loader.py:407 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/428123ee04f17c82. Report an issue: GitHub.

Appendix: source

Thrown at official/projects/waste_identification_ml/model_inference_with_tracking/sam3_dinov3_tracking_pipeline/config_loader.py:407

              sam3=SAM3Config(**models_data["sam3"]),
              dinov3=DINOv3Config(**dinov3_data),
          ),
          classes=classes,
          detection=DetectionConfig(
              active_prompt=data["detection"]["active_prompt"],
              image_file_extensions=list(
                  data["detection"]["image_file_extensions"]
              ),
              configs=prompt_configs,
          ),
          tracking=TrackingConfig(**data["tracking"]),
          visualization=VisualizationConfig(**visualization_data),
          collapsed_categories=collapsed_categories,
      )
    except ConfigurationError:
      raise
    except Exception as err:
      raise ConfigurationError(
          f"Error validating configuration structure in {yaml_path}: {err}"
      ) from err


View on GitHub (pinned to e006f5f0d5)