«
module documentation

Utilities for working with the UCF101 dataset.

Copyright 2017-2025, Voxel51, Inc.

Function download_ucf101_dataset Downloads and extracts the UCF101 dataset.
Variable logger Undocumented
Function _download_splits Undocumented
Function _download_videos Undocumented
Function _load_split_info Undocumented
Constant _SPLITS_DOWNLOAD_LINK Undocumented
Constant _VIDEOS_DOWNLOAD_LINK Undocumented
def download_ucf101_dataset(dataset_dir, scratch_dir=None, fold=1, cleanup=True): (source)

Downloads and extracts the UCF101 dataset.

Any existing files are not re-downloaded.

Parameters
dataset_dirthe directory to output the final dataset
scratch_dir:Nonea scratch directory to use to store temporary files
fold:1the test/train fold to use to arrange the files on disk. The supported values are (1, 2, 3)
cleanup:Truewhether to cleanup the scratch directory after extraction

Undocumented

def _download_splits(scratch_dir): (source)

Undocumented

def _download_videos(scratch_dir): (source)

Undocumented

def _load_split_info(split_path): (source)

Undocumented

_SPLITS_DOWNLOAD_LINK: str = (source)

Undocumented

Value
'https://www.crcv.ucf.edu/wp-content/uploads/2019/03/UCF101TrainTestSplits-Recog
nitionTask.zip'
_VIDEOS_DOWNLOAD_LINK: str = (source)

Undocumented

Value
'https://www.crcv.ucf.edu/datasets/human-actions/ucf101/UCF101.rar'