Git Product home page Git Product logo

hand-sign-recognizer's Introduction

Hand-Sign-Recognizer

python pytorch

linux macos windows

Setting Up the Environment

Mac OS, Linux Or Unix

  1. Install python 3.6+ version
  2. Install pip3
  3. Open the terminal and clone the repository by running,
git clone https://github.com/nzx9/Hand-Sign-Recognizer.git
  1. Navigate to the project folder,
cd Hand-Sign-Recognizer
  1. Create virutal environment and activate the env
python3 -m env ./env
source ./env/bin/activate
  1. Install the requiements by running,
pip3 install requirements.txt

Windows

  1. Install python 3.6+ version
  2. Install pip3
  3. Open the CLI and clone the repository by running,
git clone https://github.com/nzx9/Hand-Sign-Recognizer.git

Usage

Training the Model

Arguements

Argument Short Help Default
--train_dataset -trd Path to training dataset ./data/asl_alphabet/asl_alphabet_train
--epochs -e Number of epochs 10
--learning_rate -lr Learning rate 1e-4
--batch_size -b Batch size of dataloader 64
--num_workers -n Number of workers in dataloader 2
--save -s Name of the .pth file to save 'asl-interpreter-rgb.pth'
--output -o Show Output False

Mac OS, Linux or Unix

python3 trainer.py -trd [? path_to_train_dataset] -e [? epochs] -lr [? learning_rate] -b [? batch_size] -n [? num_workers] -s [? save_to] -o [? output]

Windows

python trainer.py -trd [? path_to_train_dataset] -e [? epochs] -lr [? learning_rate] -b [? batch_size] -n [? num_workers] -s [? save_to] -o [? output]

Testing the Model

Arguements

Argument Short Description Default
--test_dataset -tsd Path to testing dataset ./data/results/asl_alphabet_test
--batch_size -b Batch size of dataloader 32
--num_workers -n Number of workers in dataloader 2
--pth_file -p File path to .pth file ./data/results/static_asl_rgb.pth
--save -s Name of the output files need to save test_outputs
--confusion_matrix -c Show Confusion Matrix (Not Implemented Yet) -
--output -o Show output False

Mac OS, Linux or Unix

python3 tester.py -tsd [? path_to_test_dataset] -b [? batch_size] -n [? num_workers] -p [? pth_file] -s [? save_to] -c [? confusion_matrix] -o [? output]

Windows

python tester.py -tsd [? path_to_test_dataset] -b [? batch_size] -n [? num_workers] -p [? pth_file] -s [? save_to] -c [? confusion_matrix] -o [? output]

Pretrained Model

  • Training Accuracy: 99.044% (86168/ 87000)

  • Testing Accuracy: 100% (26/ 26)

License

BSD-3-Clause License

hand-sign-recognizer's People

Contributors

nzx9 avatar

Stargazers

 avatar

Watchers

 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.