We as people often find ourselves helpless, unable to find time or energy to fight for what is right, yet despite all odds, we must, at our own pace, in our own way. Given the tedious nature of bureaucracy and the henious nature of the crimes around us, it is important that we keep raising our voices. I am unable to fight from the frontlines, thus I raise my voice in the tiny way I can, let this name be the reminder of the sister taken from us on the night of the 9th of August. Let this model be in her tribute, with the hope that this is able to help people like she did.
- Python and Libraries
- Mediapipe
- OpenCV
- TensorFlow
In the root directory.
pip install -r requirements.txt
Training Data
Training npy > Training Data
Step 5: Place the videos you want to train on in the Training Data
folder, ensuring they are organized by class:
Training Data
|- Video Class 1 Folder
|- Video 1
|- Video 2
|- Video Class 2 Folder
It is recommended to keep a minimum of 30 videos per class.
Step 6: Adjust the model architecture, learning rate, and other hyperparameters as needed, then start training.
Step 7: Test your model using the test.ipynb
file. Alternatively, you can use the testingwithjson.py
file in the Models and Testing
folder to test your model via an API.
- We use Mediapipe in Python to extract features and pose from gesture videos, saving them as
.npy
files. - These files are then processed by an LSTM model.
To test the AbhayaV1 model, run the testingwithjson.py
file and send a JSON request to the URI with the following format:
{
"url": "Link_to_Your_Video.mp4"
}
Currently, it supports only 15 sentences; we are working to add more.
Supported sentences:
- 'Are you free today'
- 'Can you repeat that please'
- 'Congratulations'
- 'Help me please'
- 'How are you'
- 'I am fine'
- 'I love you'
- 'No'
- 'Please come, Welcome'
- 'Talk slower please'
- 'Thank you'
- 'What are you doing'
- 'What do you do'
- 'What happened'
- 'Yes'
Windows does not support tensorflow's GPU version directly without installing WSL. If you are running this on vanilla windows, you will have to run the model on your CPU. If you are using linux or WSL, the tensorflow installation process is a bit different, check out here.