return_absolute_data_paths

lightning_pose.utils.io.return_absolute_data_paths(data_cfg: DictConfig, n_dirs_back: int = 3) tuple[str, str][source]

Generate absolute path for our example toy data.

@hydra.main decorator switches the cwd when executing the decorated function, e.g., our train(). so we’re in some /outputs/YYYY-MM-DD/HH-MM-SS folder.

Parameters:
  • data_cfg (DictConfig) – data config file with paths to data and video folders.

  • n_dirs_back (int)

Returns:

absolute paths to data and video folders.

Return type:

Tuple[str, str]