tensorflow/models · error · FileNotFoundError
Classifier directory does not exist: {classifier_dir}
Error message
Classifier directory does not exist: {classifier_dir} What it means
Error "Classifier directory does not exist: {classifier_dir}" thrown in tensorflow/models.
Source
Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py:266
def validate_train_split_exists(
classifier_dir: str, train_split_name: str
) -> str:
"""Ensures the train split exists under the classifier directory.
Args:
classifier_dir: Path to the classifier dataset root.
train_split_name: Name of the train split folder (e.g. ``'train'``).
Returns:
The path to the train split folder.
Raises:
FileNotFoundError: If the classifier dir or train split is missing.
"""
if not os.path.isdir(classifier_dir):
raise FileNotFoundError(
f"Classifier directory does not exist: {classifier_dir}"
)
train_dir = os.path.join(classifier_dir, train_split_name)
if not os.path.isdir(train_dir):
raise FileNotFoundError(f"Train split folder is missing: {train_dir}")
return train_dir
def is_augmented_filename(file_name: str) -> bool:
"""Checks if a filename already corresponds to an augmented image.
Scans for every suffix in ``config_loader.CANONICAL_AUGMENTATION_ORDER``,
not just the currently active set, so leftover augmentations from a
previous run with different settings are still detected.
Args:View on GitHub (pinned to e006f5f0d5)
When it happens
Trigger: Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py:266 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/cf9b0b72a1879c20.
Report an issue: GitHub.