tensorflow/models · error · FileNotFoundError

Train split folder is missing: {train_dir}

Error message

Train split folder is missing: {train_dir}

What it means

Error "Train split folder is missing: {train_dir}" thrown in tensorflow/models.

Source

Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/augment_train_split.py:272

  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:
      file_name: Image file name.

  Returns:
      ``True`` if the filename ends with any known augmentation suffix.
  """
  base_name = os.path.splitext(file_name)[0]

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:272 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/dfc338e6417f635b. Report an issue: GitHub.