Git Product home page Git Product logo

asl-iter-attn's Introduction

ASL Fingerspelling recognition in the wild

This is the code for paper:

  • Fingerspelling recognition in the wild with iterative visual attention (Shi et al. ICCV 2019)[paper]

Preparation:

  1. Download data

  2. Prerequisites:

  • python 2.7+ (Should be compatible with 3.x)
  • pytorch 0.4+
  • OpenCV 3+
  • Warp-ctc
  • face_recognition (required for Face-ROI setting)

Experiment pipeline:

  1. Untar ChicagoFSWild.tgz and edit paths in path.sh

  2. Preprocessing:

cd preproc
./preproc.sh

Pre-processing mainly includes (1). Getting optical flow of frame sequence (2). Generating prior for each frame (3). Resizing image frame (4). Detecting face and cropping initial ROI for model training (Face-ROI only)

Switch task variable between face-roi and whole for preprocessing for Face-ROI setting and Whole-frame setting. Note: if you are on cluster, you may accelerate this process by launching multiple jobs simultaneously through specifying start and end variable which denotes the start/end sequence id.

  1. Model training:

Whole-frame experiment:

./whole_exp.sh

Face-ROI experiment:

./faceroi_exp.sh

You may specify different hyperparameters in conf.ini. Note current data loader does not support having frame sequences of different width/height within one batch. All images are resized to same size beforehand except for training in the first iteration under whole-frame setting. Batch size for that iteration must be set to 1.

  1. Decoding and Evaluation:

Quick run: set stage variable to 2 in whole_exp.sh or faceroi_exp.sh then re-run two scripts. This will do (1). generating probability sequence for each frame sequence (2). greedy decoding (3). training language model (4). beam search with language model.

You can also do these steps separately, especially for tuning parameters in (4) including beam width, language model weights and insertion/deletion penalty for a given language model.

asl-iter-attn's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.