"git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "bc2642564e532eb4d663ff0c702d90da6ab6bc76"
Unverified Commit 5ef75d7b authored by Bruno Korbar's avatar Bruno Korbar Committed by GitHub
Browse files

Update UCF101 docstring (#4275)



* Update UCF101 docstring

* addressing @NicolasHugs comments

* Fixed flake8 error
Co-authored-by: default avatarPrabhat Roy <prabhatroy@fb.com>
parent a3d9c416
...@@ -14,7 +14,9 @@ class UCF101(VisionDataset): ...@@ -14,7 +14,9 @@ class UCF101(VisionDataset):
UCF101 is an action recognition video dataset. UCF101 is an action recognition video dataset.
This dataset consider every video as a collection of video clips of fixed size, specified This dataset consider every video as a collection of video clips of fixed size, specified
by ``frames_per_clip``, where the step in frames between each clip is given by by ``frames_per_clip``, where the step in frames between each clip is given by
``step_between_clips``. ``step_between_clips``. The dataset itself can be downloaded from the dataset website;
annotations that ``annotation_path`` should be pointing to can be downloaded from `here
<https://www.crcv.ucf.edu/data/UCF101/UCF101TrainTestSplits-RecognitionTask.zip>`.
To give an example, for 2 videos with 10 and 15 frames respectively, if ``frames_per_clip=5`` To give an example, for 2 videos with 10 and 15 frames respectively, if ``frames_per_clip=5``
and ``step_between_clips=5``, the dataset size will be (2 + 3) = 5, where the first two and ``step_between_clips=5``, the dataset size will be (2 + 3) = 5, where the first two
...@@ -26,7 +28,8 @@ class UCF101(VisionDataset): ...@@ -26,7 +28,8 @@ class UCF101(VisionDataset):
Args: Args:
root (string): Root directory of the UCF101 Dataset. root (string): Root directory of the UCF101 Dataset.
annotation_path (str): path to the folder containing the split files annotation_path (str): path to the folder containing the split files;
see docstring above for download instructions of these files
frames_per_clip (int): number of frames in a clip. frames_per_clip (int): number of frames in a clip.
step_between_clips (int, optional): number of frames between each clip. step_between_clips (int, optional): number of frames between each clip.
fold (int, optional): which fold to use. Should be between 1 and 3. fold (int, optional): which fold to use. Should be between 1 and 3.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment