Two PyTorch models for
Arabic Sign Language (ArSL) recognition, used by the
CSLR app (deployed as a Hugging Face Space):
A spatial-sequential classifier for static Arabic letter signs.
A landmark-based classifier for dynamic word signs.
1import torch
2from huggingface_hub import hf_hub_download
3
4# --- Alphabet model ---
5from models.alphabet_model import ArSLAttentionLSTM # from the CSLR repo
6
7ckpt = hf_hub_download("FatimahEmadEldin/ArSL-Models", "improved_arsl_model.pth")
8model = ArSLAttentionLSTM(num_classes=29, hidden_size=512, num_layers=2,
9 bidirectional=True, dropout_rate=0.5)
10state = torch.load(ckpt, map_location="cpu")
11state = state.get("model_state_dict", state) if isinstance(state, dict) else state
12model.load_state_dict(state, strict=False)
13model.eval()
The full inference pipeline (MediaPipe hand detection, preprocessing, the T5 word
model, and a web UI) is available in the
CSLR repository.
1@misc{arsl_models_2026,
2 title = {ArSL-Models: Arabic Sign Language Recognition},
3 author = {Fatimah Emad Eldin},
4 year = {2026},
5 howpublished = {\url{https://huggingface.co/FatimahEmadEldin/ArSL-Models}}
6}