tensorflow/models · error · FileNotFoundError
Dataset is missing split folder
Error message
Dataset {dataset_name!r} is missing split folder: {split_input_dir} What it means
Raised in process_split when a configured split (e.g. train/val) folder is missing from a dataset.
Solutions
- Create the missing split folder or fix the configured split_names.
- Re-run the split_train_val stage to generate train/val folders.
- Check the dataset actually contains the configured split names.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/segmentation.py:591 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/eb111d230baf67e2.
Report an issue: GitHub.
Appendix: source
Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/segmentation.py:591
classifier_output_dir: Path to the classifier dataset root.
split_names: Split subfolder names to iterate, e.g. ``('train', 'val')``.
processor: SAM3 processor instance.
detection_config: Validated detection thresholds for this prompt.
prompt: Text prompt for detection.
crop_variants: Sequence of crop variant names to save.
max_cpu_workers: Size of the CPU thread pool.
queue_maxsize: Maximum in-flight CPU jobs before the GPU loop blocks.
Raises:
FileNotFoundError: If a configured split is missing.
"""
print(f"\n=== Dataset: {dataset_name} ===")
dataset_start = time.perf_counter()
for split_name in split_names:
split_input_dir = os.path.join(input_dir, split_name)
if not os.path.isdir(split_input_dir):
raise FileNotFoundError(
f"Dataset {dataset_name!r} is missing split folder: {split_input_dir}"
)
class_folder = os.path.join(classifier_output_dir, split_name, dataset_name)
log_label = f"{dataset_name}/{split_name}"
process_split(
split_input_dir,
class_folder,
log_label,
processor,
detection_config,
prompt,
crop_variants,
max_cpu_workers,
queue_maxsize,
)
View on GitHub (pinned to e006f5f0d5)