module documentation
Utilities for working with the
ActivityNet dataset
.
Class |
|
ActivityNet 100 dataset info. |
Class |
|
ActivityNet 200 dataset info. |
Class |
|
Class for importing AcitivityNet dataset splits downloaded via download_activitynet_split . |
Class |
|
Class that stores information related to paths, labels, and sample IDs for an ActivityNet dataset download. |
Class |
|
Class that manages the sample IDs and labels that need to be downloaded to load the specified subset of an ActivityNet dataset. |
Class |
|
Configuration class for downloading full or partial splits from the ActivityNet dataset. |
Class |
|
Necessary information used to parse and format annotations. |
Class |
|
Class that contains information related to paths, labels, and sample IDs of a single ActivityNet split. |
Function | download |
Utility that downloads full or partial splits of the ActivityNet dataset. |
Variable | logger |
Undocumented |
Function | _flatten |
Undocumented |
Function | _get |
Undocumented |
Constant | _ANNOTATION |
Undocumented |
Constant | _NUM |
Undocumented |
Constant | _SOURCE |
Undocumented |
Constant | _SOURCE |
Undocumented |
Constant | _SPLIT |
Undocumented |
Constant | _SPLIT |
Undocumented |
def download_activitynet_split(dataset_dir, split, source_dir=None, classes=None, max_duration=None, copy_files=True, num_workers=None, shuffle=None, seed=None, max_samples=None, version='200'):
(source)
¶
Utility that downloads full or partial splits of the ActivityNet dataset.
Parameters | |
dataset | the directory to download the dataset |
split | the split to download. Supported values are ("train", "validation", "test") |
sourceNone | the directory containing the manually downloaded ActivityNet files |
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 |
maxNone | only videos with a duration in seconds that is less than or equal to the max_duration will be downloaded. By default, all videos are downloaded |
copyTrue | whether to move (False) or create copies (True) of the source files when populating dataset_dir. This is only relevant when a source_dir is provided |
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 |
version:"200" | the ActivityNet dataset version to download. The supported values are ("100", "200") |
Returns | |
a tuple of |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|