Giter Club home page Giter Club logo

c3d-keras-1's Introduction

c3d-keras

train c3d with keras

requirements

opencv-3.2

keras-2.0.8

tensorflow-1.3

------------------update video test demo------------------------

python video_demo.py


A simple reproduce of C3D (https://github.com/facebook/C3D).

Origin paper:https://www.cv-foundation.org/openaccess/content_iccv_2015/html/Tran_Learning_Spatiotemporal_Features_ICCV_2015_paper.html

Files:

video2img.py

Convert videos to images for UCF-101 dataset (http://crcv.ucf.edu/data/UCF101.php).

make_label_txt.py

Generate label texts.

models.py

Define the C3D model.

train_c3d.py  

Train the C3D model, the init learning rate was set to 0.005, and it divided by 10 after 4,8, 12 epoch as same as in the origin perper. Video clips are resized to 128x171x16, then flip the data and apply a center crop (112x112x16)on clips.

Results:

train and val acc curve during training

the final val acc of origin paper is about 44% in Figure 2, where in my implementation is 42.96%, the batch size was set to 16 , I only have one GTX1080.

image

train and val loss during training.

image

The trained weight file can be downloaded from (https://pan.baidu.com/s/1gfNEaCr)

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.