GithubHelp home page GithubHelp logo

slide_extraction's Introduction

Slide Extraction

Extract slides out of videos

Note: Only the slide detection bit of the pipeline exists as of now.

Setup

You need to have ffmpeg installed & in path. I've noticed some inconsistencies between ffmpeg versions. Please use v3.0

# Create a new env using virtualenv
virtualenv venv
source venv/bin/activate

Install tensorflow from https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#pip-installation

pip install -r requirements.txt

Import data

# The script downloads a bunch of youtube videos & serialzes them into bin
# files stored at data/serialized/
python import_data.py

Train & evaluate

python model_train.py

# Resume from checkpoint
python model_train.py --resume_training
# This will surely screw up your event log as you're going back in time to the
# checkpoint, which is saved every 100 steps or so.
# Tensorboard will end up showing some weird graphs. Increment run_no to avoid this
python model_train.py --resume_training --run_no=2
# Continously evaluate the model every 5 minutes
python model_eval.py
# To evaluate pre-trained weights, use this
# You can download my pre-trained weights from
# https://drive.google.com/file/d/0B8gGhyLfZXnYazlaRlJqeURMS2c/view?usp=sharing
# They give me around 97.5% accuracy as of now
python model_eval.py --run_once --checkpoint_dir=./learned_params

Visualize

# In case you've changed your default logdir
tensorboard --logdir ./tmp/train

# For multiple runs, change the add a run_no flag to training
python model_train.py --run_no=2
# This allows you to compare multiple runs on tensorboard

Serve

TODO

Architecture & memory constraints

TODO

Workflow to add more data

TODO

slide_extraction's People

Contributors

rahuljayaraman avatar

Watchers

James Cloos 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.