Data Preparation
April 9, 2023 ยท View on GitHub
-
The pre-processing of Kinetics400 can be summarized into 3 steps:
-
Download the dataset from official website.
-
Preprocess the dataset by resizing the short edge of video to 320px.
-
Generate annotations needed for dataloader ("<path_to_video> <video_class>" in annotations) in
k400_anno. The annotation usually includestrain.csv,val.csvandtest.csv( heretest.csvis the same asval.csv). The format of*.csvfile is like:dataset_root/video_1.mp4 label_1 dataset_root/video_2.mp4 label_2 dataset_root/video_3.mp4 label_3 ... dataset_root/video_N.mp4 label_N
-
-
The pre-processing of Something-Something-V2 can be summarized into 3 steps:
-
Download the dataset from official website.
-
(optional) Preprocess the dataset by changing the video extension from
webmto.mp4with the original height of 240px. -
Generate annotations needed for dataloader ("<path_to_video> <video_class>" in annotations) in
ssv2_anno. The annotation usually includestrain.csv,val.csvandtest.csv( heretest.csvis the same asval.csv). The format of*.csvfile is like:
dataset_root/video_1.webm label_1 dataset_root/video_2.webm label_2 dataset_root/video_3.webm label_3 ... dataset_root/video_N.webm label_N -