{"record":{"id":"cf9b0b72a1879c20","repo":"tensorflow/models","slug":"classifier-directory-does-not-exist-classifier-d","errorCode":null,"errorMessage":"Classifier directory does not exist: {classifier_dir}","messagePattern":"Classifier directory does not exist: (.+?)","errorType":"exception","errorClass":"FileNotFoundError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py","lineNumber":266,"sourceCode":"\n\ndef validate_train_split_exists(\n    classifier_dir: str, train_split_name: str\n) -> str:\n  \"\"\"Ensures the train split exists under the classifier directory.\n\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:","sourceCodeStart":248,"sourceCodeEnd":284,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py#L248-L284","documentation":"Error \"Classifier directory does not exist: {classifier_dir}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py:266 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"}