tensorflow/models · error · ConfigurationError

Config file not found or inaccessible: {yaml_path}

Error message

Config file not found or inaccessible: {yaml_path}

What it means

Error "Config file not found or inaccessible: {yaml_path}" thrown in tensorflow/models.

Source

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

  @classmethod
  def from_yaml(cls, yaml_path: str) -> Self:
    """Parses the YAML file into a strictly typed configuration object.

    Args:
      yaml_path: Path to the YAML configuration file.

    Returns:
      A fully populated PipelineConfig.

    Raises:
      ConfigurationError: If the YAML file cannot be found, if the file content
        is invalid YAML, or if configuration validation fails.
    """
    try:
      with open(yaml_path, "r", encoding="utf-8") as file:
        data = yaml.safe_load(file)
    except OSError as err:
      raise ConfigurationError(
          f"Config file not found or inaccessible: {yaml_path}"
      ) from err
    except yaml.YAMLError as err:
      raise ConfigurationError(
          f"Invalid YAML syntax in {yaml_path}: {err}"
      ) from err

    if not isinstance(data, dict):
      raise ConfigurationError(
          f"Configuration root in {yaml_path} must be a dictionary."
      )

    try:
      prompt_configs = {}
      for name, cfg in data["detection"]["configs"].items():
        cfg_copy = dict(cfg)
        if "crop_size" in cfg_copy:
          cfg_copy["crop_size"] = tuple(cfg_copy["crop_size"])

View on GitHub (pinned to e006f5f0d5)

When it happens

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