Skip to content

Commit 5266a72

Browse files
pmeierfmassa
andauthored
include intended structure of root directory in docstring of Kinetics400 (#3453)
* include intended structure of root directory in docstring of Kinetics400 * fix syntax Co-authored-by: Francisco Massa <[email protected]>
1 parent 4076d7b commit 5266a72

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

torchvision/datasets/kinetics.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,18 @@ class Kinetics400(VisionDataset):
2323
Internally, it uses a VideoClips object to handle clip creation.
2424
2525
Args:
26-
root (string): Root directory of the Kinetics-400 Dataset.
26+
root (string): Root directory of the Kinetics-400 Dataset. Should be structured as follows:
27+
.. code::
28+
29+
root/
30+
├── class1
31+
│ ├── clip1.avi
32+
│ ├── clip2.avi
33+
│ └── ...
34+
└── class2
35+
├── clipx.avi
36+
└── ...
37+
2738
frames_per_clip (int): number of frames in a clip
2839
step_between_clips (int): number of frames between each clip
2940
transform (callable, optional): A function/transform that takes in a TxHxWxC video

0 commit comments

Comments
 (0)