tensorflow/models · error · ConfigError
prompt_to_detect {prompt_to_detect!r} has no block under pro
Error message
prompt_to_detect {prompt_to_detect!r} has no block under prompts. Available prompts: {sorted(prompts)}. What it means
Error "prompt_to_detect {prompt_to_detect!r} has no block under prompts. Available prompts: {sorted(prompts)}." thrown in tensorflow/models.
Source
Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:718
raw_config["min_detections"], "min_detections"
)
crop_variants = _validate_crop_variants(raw_config["crop_variants"])
max_cpu_workers = _require_positive_int(
raw_config["max_cpu_workers"], "max_cpu_workers"
)
queue_maxsize = _require_positive_int(
raw_config["queue_maxsize"], "queue_maxsize"
)
rotation_fill_color = _validate_rotation_fill_color(
raw_config["rotation_fill_color"]
)
prompts = _validate_prompts(raw_config["prompts"])
prompt_to_detect = _require_non_empty_string(
raw_config["prompt_to_detect"], "prompt_to_detect"
)
if prompt_to_detect not in prompts:
raise ConfigError(
f"prompt_to_detect {prompt_to_detect!r} has no block under "
f"prompts. Available prompts: {sorted(prompts)}."
)
return PipelineConfig(
root_dir=root_dir,
classifier_dir=_derive_sibling_dir(root_dir, "_classifier"),
rejected_dir=_derive_sibling_dir(root_dir, "_empty"),
sam3_checkpoint_path=sam3_checkpoint_path,
cuda_visible_devices=cuda_visible_devices,
input_images_folder_name=input_images_folder_name,
train_val_folder_name=train_val_folder_name,
train_split_name=train_split_name,
val_split_name=val_split_name,
prompt_to_detect=prompt_to_detect,
keep_every_nth=keep_every_nth,
train_ratio=train_ratio,
min_detections=min_detections,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:718 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/6a6897c97a69eac4.
Report an issue: GitHub.