- Python3.6
- Tensorflow 1.8.0
S2VT_tensorflow
-
Download MSVD dataset in data/youtube_videos
-
Extract Video Features
$ python extract_RGB_feature.py
-
Train model
- run ipython
$ CUDA_VISIBLE_DEVICES=0 ipython
>>> import model_RGB >>> model_RGB.train()
- run ipython
-
Test model
- run ipython
$ CUDA_VISIBLE_DEVICES=0 ipython
>>> import model_RGB >>> model_RGB.test()
You can change save model
- run ipython
-
Evaluate with COCO
- move S2VT_Description.txt, S2VT_results.txt to ./caption-eval
mv S2VT_Description.txt, S2VT_results.txt to ./caption-eval $python create_json_references.py -i S2VT_Description.txt -o S2VT_Description.json $python run_evaluations.py -i S2VT_results.txt -r S2VT_Description.json
- move S2VT_Description.txt, S2VT_results.txt to ./caption-eval
S2VT model by chenxinpeng
Vgg model by AlonDaks/tsa-kaggle