Home

Awesome

VGGSound

Code and results for ICASSP2020 "VGGSound: A Large-scale Audio-Visual Dataset".

The repo contains the dataset file and our best audio classification model.

Dataset

To download VGGSound, we provide a csv file. For each YouTube video, we provide YouTube URLs, time stamps, audio labels and train/test split. Each line in the csv file has columns defined by here.

# YouTube ID, start seconds, label,train/test split. 

A helpful link for data download!

Audio classification

We detail the audio classfication results here.

ModelAggregationPretrainFinetune/TrainTestmAPAUCd-prime
AVGGish\:heavy_check_mark:AudioSet (common)ASTest0.2860.8991.803
BVGGish\:heavy_check_mark:VGGSound (common)ASTest0.3260.9161.950
CVGGish\:x:VGGSound (common)ASTest0.3010.9101.900
DResNet18AveragePool:x:VGGSound (common)ASTest0.3280.9232.024
EResNet18NetVLAD:x:VGGSound (common)ASTest0.3690.9272.058
FResNet18AveragePool:x:VGGSoundASTest0.4040.9442.253
GResNet18NetVLAD:x:VGGSoundASTest0.4340.9502.327
HResNet18AveragePool:x:VGGSoundVGGSound0.5160.9682.627
IResNet18NetVLAD:x:VGGSoundVGGSound0.5120.9702.660
JResNet34AveragePool:x:VGGSoundASTest0.4090.9472.292
KResNet34AveragePool:x:VGGSoundVGGSound0.5290.9722.703
LResNet50AveragePool:x:VGGSoundASTest0.4120.9492.309
MResNet50AveragePool:x:VGGSoundVGGSound0.5320.9732.735

Environment

Pretrained model and evaluation

We provide the pretrained models H an I here,

wget http://www.robots.ox.ac.uk/~vgg/data/vggsound/models/H.pth.tar
wget http://www.robots.ox.ac.uk/~vgg/data/vggsound/models/I.pth.tar

To test the model and generate prediction files,

python test.py --data_path "directory to audios/" --result_path "directory to predictions/" --summaries "path to pretrained models" --pool "avgpool"

To evaluate the model performance using the generated prediction files,

python eval.py --result_path "directory to predictions/"

Citation

@InProceedings{Chen20,
  author       = "Honglie Chen and Weidi Xie and Andrea Vedaldi and Andrew Zisserman",
  title        = "VGGSound: A Large-scale Audio-Visual Dataset",
  booktitle    = "International Conference on Acoustics, Speech, and Signal Processing (ICASSP)",
  year         = "2020",
}

License

The VGG-Sound dataset is available to download for commercial/research purposes under a Creative Commons Attribution 4.0 International License. The copyright remains with the original owners of the video. A complete version of the license can be found here.