<!-- # hard line break macro for HTML -->

# fiftyone.utils.ucf101

Utilities for working with the
[UCF101 dataset](https://www.crcv.ucf.edu/research/data-sets/ucf101).

Copyright 2017-2026, Voxel51, Inc.
<br/>
[voxel51.com](https://voxel51.com/)
<br/>
<br/>

**Functions:**

| [`download_ucf101_dataset`](#fiftyone.utils.ucf101.download_ucf101_dataset)(dataset_dir[, ...])   | Downloads and extracts the UCF101 dataset.   |
|---------------------------------------------------------------------------------------------------|----------------------------------------------|

### fiftyone.utils.ucf101.download_ucf101_dataset(dataset_dir, scratch_dir=None, fold=1, cleanup=True)

Downloads and extracts the UCF101 dataset.

Any existing files are not re-downloaded.

* **Parameters:**
  * **dataset_dir** – the directory to output the final dataset
  * **scratch_dir** (*None*) – a scratch directory to use to store temporary files
  * **fold** (*1*) – the test/train fold to use to arrange the files on disk. The
    supported values are `(1, 2, 3)`
  * **cleanup** (*True*) – whether to cleanup the scratch directory after
    extraction
