GithubHelp home page GithubHelp logo

bhargavaurala / accessmath-textboxes Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 10.57 MB

A fork of the TextBoxes project for finetuning and deploying a neural network for detection of handwritten whiteboard content in lecture videos

License: Other

CMake 2.43% Makefile 0.62% Dockerfile 0.06% C++ 80.60% Cuda 5.95% MATLAB 0.79% Python 9.11% Shell 0.44%

accessmath-textboxes's Introduction

accessmath-textboxes

This project is meant as a helper for our main work for detection of handwritten whiteboard content in lecture videos. It is a fork of TextBoxes.

Setting up Textboxes

  1. Clone this repository. We will call the clone directory $CAFFE_ROOT
git clone https://github.com/bhargavaurala/accessmath-textboxes.git

cd accessmath-textboxes
  1. Edit the makefile configuration file Makefile.config according to your system needs. Refer Caffe installation instructions for details about dependencies. Make sure that the python wrapper dependencies are installed since we need that for this project. This code has been tested on Ubuntu 14.04.
cp Makefile.config.example Makefile.config

mkdir build
  1. Build caffe, caffe-python and test if build went correctly.
make -j8

make py

export PYTHONPATH=$PYTHONPATH:$CAFFE_ROOT/python

python -c "import caffe"

Download

  1. Models trained on ICDAR 2013: Dropbox link BaiduYun link
  2. Fully convolutional reduced (atrous) VGGNet: Dropbox link BaiduYun link
  3. Compiled mex file for evaluation(for multi-scale test evaluation: evaluation_nms.m): Dropbox link BaiduYun link
  4. Frame version of the AccessMath dataset from here. Download the 3-part zip archive and extract into a folder called AccessMathVOC and place in AccessMath-ICFHR18 project root.
export AM_DATA_DIR=/path/to/AccessMathVOC

Generate training and validation LMDBs.

  1. cd $CAFFE_ROOT/data/AccessMath
  2. ./create_data.sh
  3. This will create train, validation and test LMDBs in $AM_DATA_DIR/AccessMath/lmdb

Train

  1. In models/VGGNet/text/longer_conv_300x300/ Modify data_param in the first layer (data) in train.prototxt and test.prototxt as shown below
  data_param {
    source: "/path/to/AccessMathVOC/AccessMath/lmdb/AccessMath_train_lmdb"
    batch_size: 32
    backend: LMDB
  }
  1. Use cd $CAFFE_ROOT/build/tools ./caffe train_net -iterations 10000 -solver models/VGGNet/text/longer_conv_300x300/solver.prototxt -weights /path/to/model_trained_on_icdar2013
  2. You should see around 77.5% as the final validation performance.
  3. Transfer the model to models/text_detection in the AccessMath root folder

accessmath-textboxes's People

Contributors

bhargavaurala avatar

Stargazers

afknckdgfh avatar  avatar Selim Firat Yilmaz avatar YeFen avatar

Watchers

James Cloos avatar  avatar  avatar

accessmath-textboxes's Issues

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.