Instructions to use Abuzaid01/asl-sign-language-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Abuzaid01/asl-sign-language-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Abuzaid01/asl-sign-language-classifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, ASLResNet processor = AutoImageProcessor.from_pretrained("Abuzaid01/asl-sign-language-classifier") model = ASLResNet.from_pretrained("Abuzaid01/asl-sign-language-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,582 Bytes
f9aa36b a732887 f9aa36b a732887 f9aa36b a732887 f9aa36b a732887 f9aa36b a732887 f9aa36b | 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 | ---
language: en
library_name: transformers
tags:
- image-classification
- resnet
- asl
- sign-language
license: mit
datasets:
- grassknoted/asl-alphabet
metrics:
- accuracy
model-index:
- name: asl-sign-language-classifier
results:
- task:
type: image-classification
name: Image Classification
dataset:
name: ASL Alphabet Dataset
type: image
split: test
metrics:
- name: Accuracy
type: accuracy
value: 0.9999
---
# ASL Sign Language Classification Model
This model is trained to recognize **American Sign Language (ASL)** alphabets using the [ASL Alphabet Dataset](https://www.kaggle.com/grassknoted/asl-alphabet).
It uses a ResNet50 backbone for image classification.
## Model Details
- **Base Architecture**: ResNet50
- **Number of Classes**: 29
- **Test Accuracy**: 0.9999
- **Dataset**: ASL Alphabet (A–Z, space, delete, nothing)
## Usage
```python
from transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image
import torch
# Load model and processor
model = AutoModelForImageClassification.from_pretrained("Abuzaid01/asl-sign-language-classifier")
processor = AutoImageProcessor.from_pretrained("Abuzaid01/asl-sign-language-classifier")
# Load an image
image = Image.open("asl_sample.jpg")
# Preprocess
inputs = processor(images=image, return_tensors="pt")
# Predict
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
predicted_class = logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[predicted_class])
|