module documentation
Utilities for working with the
Kinetics dataset
.
Class |
|
Undocumented |
Class |
|
Kinetics 400-specific dataset info. |
Class |
|
Kinetics 600-specific dataset info. |
Class |
|
Kinetics 700-2020-specific dataset info. |
Class |
|
Kinetics 700-specific dataset info. |
Class |
|
Clas that downloads and extracts Kinetics tars from AWS. |
Class |
|
Class that contains information such as paths, labels, and sample IDs for a Kinetics download. |
Class |
|
Class that manages the sample IDs and labels that need to be downloaded as well as performing the actual downloading. |
Class |
|
Config class for a Kinetics download run. |
Function | download |
Utility that downloads full or partial splits of the Kinetics dataset. |
Variable | logger |
Undocumented |
Function | _flatten |
Undocumented |
Constant | _ANNOTATION |
Undocumented |
Constant | _INFO |
Undocumented |
Constant | _SPLIT |
Undocumented |
def download_kinetics_split(dataset_dir, split, classes=None, num_workers=None, shuffle=None, seed=None, max_samples=None, retry_errors=False, scratch_dir=None, version='700-2020'):
(source)
¶
Utility that downloads full or partial splits of the Kinetics dataset.
The downloaded splits are stored on disk in :ref:`VideoClassificationDirectoryTree format <VideoClassificationDirectoryTree-import>`.
Parameters | |
dataset | the directory to download the dataset |
split | the split to download. Supported values are ("train", "validation", "test") |
classes:None | a string or list of strings specifying required classes to load. If provided, only samples containing at least one instance of a specified class will be loaded |
numNone | a suggested number of threads to use when downloading individual videos |
shuffle:False | whether to randomly shuffle the order in which samples are chosen for partial downloads |
seed:None | a random seed to use when shuffling |
maxNone | a maximum number of samples to load per split. If classes are also specified, only up to the number of samples that contain at least one specified class will be loaded. By default, all matching samples are loaded |
retryFalse | whether to retry downloading samples from YouTube that have previously raised an error |
scratchNone | a scratch directory to use to store temporary files |
version:"700-2020" | the version of the Kinetics dataset to download ("400", "600", "700", or "700-2020") |
Returns | |
a tuple of |
|
Undocumented
Value |
|
Undocumented
Value |
|