GithubHelp home page GithubHelp logo

ammieqi / video_captioning.pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyzcn/video_captioning.pytorch

0.0 2.0 0.0 31.82 MB

Video Captioning

Python 92.52% Jupyter Notebook 0.64% Shell 6.84%

video_captioning.pytorch's Introduction

Video Captioning

IMAGE ALT TEXT HERE

Dependencies

  • Python 2.7
  • Pytorch 0.2
  • Microsoft COCO Caption Evaluation
  • CIDEr
  • torch, torchvision, numpy, scikit-image, nltk, h5py, pandas, future
  • tensorboard_logger--for use tensorboard to view training loss

(Check out the coco-caption and cider projects into your working directory)

Data

Obtain the dataset you need:

Getting started

Generate metadata

  1. run func_standalize_format
  2. run func_preprocess_datainfo
  3. run func_build_vocab
  4. run func_create_sequencelabel
  5. run func_convert_datainfo2cocofmt
  6. run func_compute_ciderdf # Pre-compute document frequency for CIDEr computation
  7. run func_compute_evalscores # Pre-compute evaluation scores (BLEU_4, CIDEr, METEOR, ROUGE_L) for each caption
  8. run func_extract_video_features # extract video features

Training

Please refer to the opts.py file for the set of available train/test options

# Train XE model
./train.sh 0 [GPUIDs]
# Train CST_GT_None/WXE model
./train.sh 1 [GPUIDs]
# Train CST_MS_Greedy model (using greedy baseline)
./train.sh 2 [GPUIDs]
# Train CST_MS_SCB model (using SCB baseline, where SCB is computed from GT captions)
./train.sh 3 [GPUIDs]
#Train CST_MS_SCB(*) model (using SCB baseline, where SCB is computed from model sampled captions)
./train.sh 4 [GPUIDs]

Testing

./test.sh 0 [GPUIDs]

Acknowledgements

video_captioning.pytorch's People

Contributors

gujiuxiang avatar

Watchers

James Cloos avatar paper2code - bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.