GithubHelp home page GithubHelp logo

gesture_recognition's Introduction

Gesture_Recognition.

Framework : Pytorch, MediaPipe

This repository contains all the code(model, make_dataset etc) so you can customize it.


How to do environment setup.

  1. conda create -n Gesture
  2. pip install -r requirements.txt

Structure of directory.

├── development_files_for_reference
│   ├── CustomDataset.ipynb
│   ├── model.ipynb
│   └── validation
│ 
├── images
│   └── model.png
│ 
├── main_data
│   ├── data_gesture_Left.csv
│   ├── data_gesture_Right.csv
│   ├── data_gesture_Turn Anticlockwise.csv
│   └── data_gesture_Turn Clockwise.csv
│ 
├── main_files
│   ├── CustomDataset.py
│   ├── make_dataset.ipynb
│   └── model.py
│ 
├── main_models
│   ├── model_dict().pt
│   └── model.pt
│ 
├── test.ipynb
└── train.ipynb

Explanation about Folder & File.

development_files_for_reference : Miscellaneous files used during development (feel free to delete)

main_data : Path where collected data is stored: We collected left, right clockwise and counterclockwise data.

main_files :

  • CustomDataset.py : Implement customdataloader as a class using pytorch.

  • make_dataset.ipynb : Use it when collecting data. You must change class_num when you gather other dataset.

  • model.py : CNN-LSTM model was implemented as class type.

main_models : model save path

test.ipynb : Code used when testing the model

train.ipynb: Code used when training the model


Model architecture.

RubberDuck


Test.

RubberDuck


Precautions for use.

  1. mediapipe need python version 3.8 - 3.11 , Beware of version conflicts! (If you used requirement.txt, no need to worry)
  2. If you use a public server rather than a local computer, an error will occur in your code because there is no camera.
  3. So i did data collect in local computer with camera attached and test in local computer. Only Traning process is used in School Server.

ETC

  1. Early stopping was not applied here.

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.