Git Product home page Git Product logo

videodecaptioningchalearn's Introduction

Video Decaptioning for Chalearn Track 2

Setup Models and Data

Download VGG model weights

We use tensorflow implemention of VGG 16 based on tensorflow-vgg for perceptual loss. Download the weights of the vgg model from VGG16 NPY and keep them in the code directory as './vgg16.npy'.

Setting up Data

Save all the training images in './Data/train' folder in the respective './Data/train/X' and './Data/train/Y' folder and all the test images in './Data/test' folder in './Data/test/X' folder

Download models

The pretrained models are kept at modelfile. Download all the files and keep in their respective './model' folder.

Runnung the code

STAGE1:

step2: Train stage1 network for the decaptioning task which involves mask generation and inpainting of frames using the below mentioned python file, it will save the model files in './model' folder

python train.py 

step3: Pass the trainig data through the above trained network and obtain the mask and inpainted output of the first stage. Run below code for the same.

python test_val.py

update DATASET_PATH= ../Data/videos, savepath='../Output/stage1' and part ='train'

During testing change the DATASET_PATH ='../Data/videos', savepath='../Output/stage1/val' and part = 'val'

STAGE2:

step4: Train stage2 network by executing below file,

python train_perceptual.py

step3: Test the above trained/pretrained network on the validation dataset, output will get saved in './Output/stage2' folder.

python test_val_stage2.py

videodecaptioningchalearn's People

Contributors

vismay93 avatar anubhapandey avatar

Stargazers

 avatar  avatar  avatar John D. Pope avatar

Watchers

 avatar

Forkers

johndpope

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.