{"record":{"id":"a80d228a2128deaf","repo":"tensorflow/models","slug":"config-file-does-not-exist-config-path","errorCode":null,"errorMessage":"Config file does not exist: {config_path}","messagePattern":"Config file does not exist: (.+?)","errorType":"exception","errorClass":"ConfigError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py","lineNumber":655,"sourceCode":"  \"\"\"Reads, validates, and returns the pipeline configuration.\n\n  All validation happens here so that every stage fails at the same gate,\n  before any dataset walk or GPU work. On success the returned object is\n  fully typed and internally consistent.\n\n  Args:\n      config_path: Path to the YAML configuration file.\n\n  Returns:\n      A validated :class:`PipelineConfig`.\n\n  Raises:\n      ConfigError: If the file is missing, is not valid YAML, is missing\n          required fields, contains out-of-range values, or names a\n          ``prompt_to_detect`` that has no block under ``prompts``.\n  \"\"\"\n  if not os.path.isfile(config_path):\n    raise ConfigError(f\"Config file does not exist: {config_path}\")\n\n  try:\n    with open(config_path, \"r\", encoding=\"utf-8\") as config_file:\n      raw_config = yaml.safe_load(config_file)\n  except OSError as error:\n    raise ConfigError(f\"Cannot read config file: {error}\") from error\n  except yaml.YAMLError as error:\n    raise ConfigError(f\"Config file is not valid YAML: {error}\") from error\n\n  if not isinstance(raw_config, dict):\n    raise ConfigError(\n        \"Config file must contain a top-level mapping of settings.\"\n    )\n\n  _require_keys(raw_config, _REQUIRED_TOP_LEVEL_KEYS, \"config.yaml\")\n\n  root_dir = _require_non_empty_string(raw_config[\"root_dir\"], \"root_dir\")\n  sam3_checkpoint_path = _require_non_empty_string(","sourceCodeStart":637,"sourceCodeEnd":673,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py#L637-L673","documentation":"Raised in load_config when the given config_path does not exist as a file.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:655 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the path for typos and confirm the file exists (ls the directory).","Run from the intended working directory or pass an absolute path.","Create the config by copying the provided template if it was never made."],"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"}