File size: 2,151 Bytes
f6d25ac 27e248a f6d25ac 27e248a 8acad61 27e248a 8acad61 27e248a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
---
license: apache-2.0
tags:
- tensorflow-lite
- edge-ai
- asl-recognition
- mediapipe
- computer-vision
- gesture-recognition
library_name: tensorflow
inference: false
datasets: []
model-index:
- name: ASL-TFLite-Edge
results: []
---
# ASL-TFLite-Edge
This repository contains a TensorFlow Lite model trained to recognize American Sign Language (ASL) fingerspelling gestures using hand landmark data. The model is optimized for real-time inference on edge devices.
## π§ Model Details
- **Format:** TensorFlow Lite (.tflite)
- **Input:** 64x64 RGB image (generated from hand landmarks via Mediapipe)
- **Output:** Softmax probabilities over 59 ASL character classes (including a padding token)
- **Frameworks:** TensorFlow, Mediapipe
## π Files Included
- `asl_model.tflite` β The TFLite model file for ASL recognition
- `inference_args.json` β JSON file containing the selected columns used for inference from parquet data
- `tflite_inference.py` β Inference script to run predictions from raw `.parquet` landmark files
## π How to Run Inference
You can download and load the TFLite model directly from Hugging Face using the `huggingface_hub` library.
### Clone the image
```bash
git lfs install
git clone https://huggingface.co/ColdSlim/ASL-TFLite-Edge
cd ASL-TFLite-Edge
```
### Requirements
```bash
pip install -r requirements.txt
```
### Run the Script
```bash
python tflite_inference.py path/to/sample.parquet
```
### Output
```bash
Predicted class index: 5
```
>π You can map this class index back to the character using your `char_to_num` mapping used during training.
## π Example Workflow
1. Extract right-hand landmark data from Mediapipe and store it in a `.parquet` file.
2. Ensure it contains the same selected_columns as in `inference_args.json`.
3. Run `tflite_inference.py` to get the predicted class.
## π§Ύ License
This project is licensed under the Apache 2.0 License.
## π¨βπ» Author
Developed by Manik Sheokand
For sign language fingerspelling Recognition on edge devices using TensorFlow Lite |