Code Monkey home page Code Monkey logo

american-sign-language-translation's Introduction

American Sign Language Translation in Real Time

About

This project converts American Sign Language to English language in Real time video using Convolutional Neural Networks (CNNs).

American Sign Language

Python NumPy Pandas PyTorch

Files

train.py
main.py

src/
 | -augments.py
 |
 | -dataset.py
 |
 | -models.py
 |
 | -trainer.py

requirements.txt
image-data-file.csv
lb.pkl
  • main.py contains the code to access webcam and make predictions
  • train.py contains the code to train the model
  • src/augments.py contains the code to define Train and Valid Augmentations
  • src/dataset.py contains the code to create Train and Valid Dataset class
  • src/models.py contains the code to create a custom neural network model
  • src/trainer.py contains the code to train one epoch of the model
  • image-data-file.csv has 2 columns - image_path and corresponding targets (labels encoded using scikit-learn)
  • lb.pkl is a saved scikit-learn model to encode labels

Training the model

1. Getting the data

You can download the data from here

Now, take the downloaded .zip file and extract it into a new folder: dataset/ and delete the space/ folder from the dataset/.

Make sure the dataset/ folder is at the same directory level as the train.py file.

2. Setting up Environment

Note: If you already have the requirements (libraries and packages) included in the requirements.txt skip this step.

$ conda create --name <env> --file requirements.txt

3. Training the model

If you have done the above steps right, then just running the train.py script should not produce any errors.

To run training, open the terminal and change your working directory to the same level as the train.py file.

$ python train.py

This should start a training in a few seconds and you should see a progress bar.

Making Predictions

If you don't want to train the model yourself and just want to make predictions then just install the required packages by following this step.

Then run the following command

$ python main.py

Contact

If you have any query regarding the code or anything else, please open an Issue and I'll be happy to help!

american-sign-language-translation's People

Contributors

jamesshah avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bellyfat

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.