{"record":{"id":"6a6897c97a69eac4","repo":"tensorflow/models","slug":"prompt-to-detect-prompt-to-detect-r-has-no-block","errorCode":null,"errorMessage":"prompt_to_detect {prompt_to_detect!r} has no block under prompts. Available prompts: {sorted(prompts)}.","messagePattern":"prompt_to_detect (.+?) has no block under prompts\\. Available prompts: (.+?)\\.","errorType":"exception","errorClass":"ConfigError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py","lineNumber":718,"sourceCode":"      raw_config[\"min_detections\"], \"min_detections\"\n  )\n  crop_variants = _validate_crop_variants(raw_config[\"crop_variants\"])\n  max_cpu_workers = _require_positive_int(\n      raw_config[\"max_cpu_workers\"], \"max_cpu_workers\"\n  )\n  queue_maxsize = _require_positive_int(\n      raw_config[\"queue_maxsize\"], \"queue_maxsize\"\n  )\n  rotation_fill_color = _validate_rotation_fill_color(\n      raw_config[\"rotation_fill_color\"]\n  )\n  prompts = _validate_prompts(raw_config[\"prompts\"])\n\n  prompt_to_detect = _require_non_empty_string(\n      raw_config[\"prompt_to_detect\"], \"prompt_to_detect\"\n  )\n  if prompt_to_detect not in prompts:\n    raise ConfigError(\n        f\"prompt_to_detect {prompt_to_detect!r} has no block under \"\n        f\"prompts. Available prompts: {sorted(prompts)}.\"\n    )\n\n  return PipelineConfig(\n      root_dir=root_dir,\n      classifier_dir=_derive_sibling_dir(root_dir, \"_classifier\"),\n      rejected_dir=_derive_sibling_dir(root_dir, \"_empty\"),\n      sam3_checkpoint_path=sam3_checkpoint_path,\n      cuda_visible_devices=cuda_visible_devices,\n      input_images_folder_name=input_images_folder_name,\n      train_val_folder_name=train_val_folder_name,\n      train_split_name=train_split_name,\n      val_split_name=val_split_name,\n      prompt_to_detect=prompt_to_detect,\n      keep_every_nth=keep_every_nth,\n      train_ratio=train_ratio,\n      min_detections=min_detections,","sourceCodeStart":700,"sourceCodeEnd":736,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py#L700-L736","documentation":"Error \"prompt_to_detect {prompt_to_detect!r} has no block under prompts. Available prompts: {sorted(prompts)}.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:718 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}