Home

Awesome

The TGIF-QA dataset contains 165K QA pairs for the animated GIFs from the TGIF dataset [Li et al. CVPR 2016]. The question & answer pairs are collected via crowdsourcing with a carefully designed user interface to ensure quality. The dataset can be used to evaluate video-based Visual Question Answering techniques.

In this page, you can find the code and the dataset for our IJCV journal article.

Please check this tag if you are interested in our CVPR 2017 setting.

The code and the dataset are free to use for academic purposes only. If you use any of the material in this repository as part of your work, we ask you to cite:

@article{jang-IJCV-2019,
    author    = {Yunseok Jang and Yale Song and Chris Dongjoo Kim and Youngjae Yu and Youngjin Kim and Gunhee Kim},
    title     = {{Video Question Answering with Spatio-Temporal Reasoning}}
    journal   = {IJCV},
    year      = {2019}
}

Note: Since our CVPR 2017 paper, we extended our dataset by collecting more question and answer pairs (the total count has increased from 104K to 165K) and re-ran experiments with the new dataset. The journal article and the arXiv paper is the most update one.

Have any question? Please contact:

Yunseok Jang (yunseok.jang@snu.ac.kr), Chris Dongjoo Kim (cdjkim@vision.snu.ac.kr), and Yale Song (yalesong@microsoft.com)

Q&A Types and Examples

Q&A TypeRepetition CountRepeating ActionState TransitionFrame QA
Visual Input (GIF)
QuestionHow many times does the cat lick?What does the cat do 3 times?What does the model do after lower coat?What is the color of the bulldog?
Answer7 timesPut head downPivot aroundBrown

# Q&A Pairs

TaskTrainTestTotal
Repetition Count26,8433,55430,397
Repeating Action20,4752,27422,749
State Transition52,7046,23258,936
Frame QA39,39213,69153,083
Total139,41425,751165,165

Quantitative Results

ModelRepetition Count (L2 loss)Repeating Action (Accuracy)State Transition (Accuracy)Frame QA (Accuracy)
Random Chance19.6220.0020.000.06
Most Frequent words7.7831.4030.0517.49
VIS+LSTM (aggr) [NIPS 2015]5.0946.8456.8534.59
VIS+LSTM (avg) [NIPS 2015]4.8148.7734.8234.97
VQA-MCB (aggr) [EMNLP 2016]5.1758.8524.2725.70
VQA-MCB (avg) [EMNLP 2016]5.5429.1332.9615.49
CT-SAN [CVPR 2017]5.1456.1463.9539.64
Co-Memory [CVPR 2018]4.1068.2074.3051.50
ST-VQA (Ours)4.2273.4879.7251.96

Qualitative Results

Spatial Attention

Temporal Attention

The red dotted boxes over heatmaps indicate segments in a video that include the ground-truth answers.

Attentions Visualized in Time

The yellow bar indicates the strength of temporal attention at the visualized time.

Q&A TypeRepetition CountRepeating ActionState TransitionFrame QA
Lively Visual (GIF)
QuestionHow many times does the man shave chest ?What does the boy do 3 times ?What does the man do before kiss toy ?What are the group of boys singing , dancing , and playing ?
Answer2 timesWave handsPet toyInstruments
Lively Visual (GIF)
QuestionHow many times does the man flip circle ?What does the behind do 3 times ?What does the woman do after raise leg ?What is the color of the shirt ?
Answer2 timesShake buttKick a mugWhite

Notes

Last Edit: May 22, 2020