A newer version of the Gradio SDK is available:
6.2.0
Preparing OmniSource
Introduction
@article{duan2020omni,
title={Omni-sourced Webly-supervised Learning for Video Recognition},
author={Duan, Haodong and Zhao, Yue and Xiong, Yuanjun and Liu, Wentao and Lin, Dahua},
journal={arXiv preprint arXiv:2003.13042},
year={2020}
}
We release a subset of the OmniSource web dataset used in the paper Omni-sourced Webly-supervised Learning for Video Recognition. Since all web dataset in OmniSource are built based on the Kinetics-400 taxonomy, we select those web data related to the 200 classes in Mini-Kinetics subset (which is proposed in Rethinking Spatiotemporal Feature Learning: Speed-Accuracy Trade-offs in Video Classification).
We provide data from all sources that are related to the 200 classes in Mini-Kinetics (including Kinetics trimmed clips, Kinetics untrimmed videos, images from Google and Instagram, video clips from Instagram). To obtain this dataset, please first fill in the request form. We will share the download link to you after your request is received. Since we release all data crawled from the web without any filtering, the dataset is large and it may take some time to download them. We describe the size of the datasets in the following table:
| Dataset Name | #samples | Size | Teacher Model | #samples after filtering | #samples similar to k200_val |
|---|---|---|---|---|---|
| k200_train | 76030 | 45.6G | N/A | N/A | N/A |
| k200_val | 4838 | 2.9G | N/A | N/A | N/A |
| googleimage_200 | 3050880 | 265.5G | TSN-R50-8seg | 1188695 | 967 |
| insimage_200 | 3654650 | 224.4G | TSN-R50-8seg | 879726 | 116 |
| insvideo_200 | 732855 | 1487.6G | SlowOnly-8x8-R50 | 330680 | 956 |
| k200_raw_train | 76027 | 963.5G | SlowOnly-8x8-R50 | N/A | N/A |
The file structure of our uploaded OmniSource dataset looks like:
OmniSource/
βββ annotations
β βββ googleimage_200
β β βββ googleimage_200.txt File list of all valid images crawled from Google.
β β βββ tsn_8seg_googleimage_200_duplicate.txt Positive file list of images crawled from Google, which is similar to a validation example.
β β βββ tsn_8seg_googleimage_200.txt Positive file list of images crawled from Google, filtered by the teacher model.
β β βββ tsn_8seg_googleimage_200_wodup.txt Positive file list of images crawled from Google, filtered by the teacher model, after de-duplication.
β βββ insimage_200
β β βββ insimage_200.txt
β β βββ tsn_8seg_insimage_200_duplicate.txt
β β βββ tsn_8seg_insimage_200.txt
β β βββ tsn_8seg_insimage_200_wodup.txt
β βββ insvideo_200
β β βββ insvideo_200.txt
β β βββ slowonly_8x8_insvideo_200_duplicate.txt
β β βββ slowonly_8x8_insvideo_200.txt
β β βββ slowonly_8x8_insvideo_200_wodup.txt
β βββ k200_actions.txt The list of action names of the 200 classes in MiniKinetics.
β βββ K400_to_MiniKinetics_classidx_mapping.json The index mapping from Kinetics-400 to MiniKinetics.
β βββ kinetics_200
β β βββ k200_train.txt
β β βββ k200_val.txt
β βββ kinetics_raw_200
β β βββ slowonly_8x8_kinetics_raw_200.json Kinetics Raw Clips filtered by the teacher model.
β βββ webimage_200
β βββ tsn_8seg_webimage_200_wodup.txt The union of `tsn_8seg_googleimage_200_wodup.txt` and `tsn_8seg_insimage_200_wodup.txt`
βββ googleimage_200 (10 volumes)
β βββ vol_0.tar
β βββ ...
β βββ vol_9.tar
βββ insimage_200 (10 volumes)
β βββ vol_0.tar
β βββ ...
β βββ vol_9.tar
βββ insvideo_200 (20 volumes)
β βββ vol_00.tar
β βββ ...
β βββ vol_19.tar
βββ kinetics_200_train
β βββ kinetics_200_train.tar
βββ kinetics_200_val
β βββ kinetics_200_val.tar
βββ kinetics_raw_200_train (16 volumes)
βββ vol_0.tar
βββ ...
βββ vol_15.tar
Data Preparation
For data preparation, you need to first download those data. For kinetics_200 and 3 web datasets: googleimage_200, insimage_200 and insvideo_200, you just need to extract each volume and merge their contents.
For Kinetics raw videos, since loading long videos is very heavy, you need to first trim it into clips. Here we provide a script named trim_raw_video.py. It trims a long video into 10-second clips and remove the original raw video. You can use it to trim the Kinetics raw video.
The data should be placed in data/OmniSource/. When data preparation finished, the folder structure of data/OmniSource looks like (We omit the files not needed in training & testing for simplicity):
data/OmniSource/
βββ annotations
β βββ googleimage_200
β β βββ tsn_8seg_googleimage_200_wodup.txt Positive file list of images crawled from Google, filtered by the teacher model, after de-duplication.
β βββ insimage_200
β β βββ tsn_8seg_insimage_200_wodup.txt
β βββ insvideo_200
β β βββ slowonly_8x8_insvideo_200_wodup.txt
β βββ kinetics_200
β β βββ k200_train.txt
β β βββ k200_val.txt
β βββ kinetics_raw_200
β β βββ slowonly_8x8_kinetics_raw_200.json Kinetics Raw Clips filtered by the teacher model.
β βββ webimage_200
β βββ tsn_8seg_webimage_200_wodup.txt The union of `tsn_8seg_googleimage_200_wodup.txt` and `tsn_8seg_insimage_200_wodup.txt`
βββ googleimage_200
β βββ 000
| β βββ 00
| β β βββ 000001.jpg
| β β βββ ...
| β β βββ 000901.jpg
| β βββ ...
| β βββ 19
β βββ ...
β βββ 199
βββ insimage_200
β βββ 000
| β βββ abseil
| β β βββ 1J9tKWCNgV_0.jpg
| β β βββ ...
| β β βββ 1J9tKWCNgV_0.jpg
| β βββ abseiling
β βββ ...
β βββ 199
βββ insvideo_200
β βββ 000
| β βββ abseil
| β β βββ B00arxogubl.mp4
| β β βββ ...
| β β βββ BzYsP0HIvbt.mp4
| β βββ abseiling
β βββ ...
β βββ 199
βββ kinetics_200_train
β βββ 0074cdXclLU.mp4
| βββ ...
| βββ zzzlyL61Fyo.mp4
βββ kinetics_200_val
β βββ 01fAWEHzudA.mp4
| βββ ...
| βββ zymA_6jZIz4.mp4
βββ kinetics_raw_200_train
β βββ pref_
β | βββ ___dTOdxzXY
| β β βββ part_0.mp4
| β β βββ ...
| β β βββ part_6.mp4
β | βββ ...
β | βββ _zygwGDE2EM
β βββ ...
β βββ prefZ