{"record":{"id":"dfc338e6417f635b","repo":"tensorflow/models","slug":"train-split-folder-is-missing-train-dir","errorCode":null,"errorMessage":"Train split folder is missing: {train_dir}","messagePattern":"Train split folder is missing: (.+?)","errorType":"exception","errorClass":"FileNotFoundError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py","lineNumber":272,"sourceCode":"\n  Args:\n      classifier_dir: Path to the classifier dataset root.\n      train_split_name: Name of the train split folder (e.g. ``'train'``).\n\n  Returns:\n      The path to the train split folder.\n\n  Raises:\n      FileNotFoundError: If the classifier dir or train split is missing.\n  \"\"\"\n  if not os.path.isdir(classifier_dir):\n    raise FileNotFoundError(\n        f\"Classifier directory does not exist: {classifier_dir}\"\n    )\n\n  train_dir = os.path.join(classifier_dir, train_split_name)\n  if not os.path.isdir(train_dir):\n    raise FileNotFoundError(f\"Train split folder is missing: {train_dir}\")\n\n  return train_dir\n\n\ndef is_augmented_filename(file_name: str) -> bool:\n  \"\"\"Checks if a filename already corresponds to an augmented image.\n\n  Scans for every suffix in ``config_loader.CANONICAL_AUGMENTATION_ORDER``,\n  not just the currently active set, so leftover augmentations from a\n  previous run with different settings are still detected.\n\n  Args:\n      file_name: Image file name.\n\n  Returns:\n      ``True`` if the filename ends with any known augmentation suffix.\n  \"\"\"\n  base_name = os.path.splitext(file_name)[0]","sourceCodeStart":254,"sourceCodeEnd":290,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py#L254-L290","documentation":"Error \"Train split folder is missing: {train_dir}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py:272 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"}