SharoonArshad commited on
Commit
29b335e
·
verified ·
1 Parent(s): 433f976

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +68 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ tags:
4
+ - sign-language
5
+ - asl
6
+ - transformer
7
+ - pytorch
8
+ - prototype-learning
9
+ - curriculum-learning
10
+ ---
11
+
12
+ # ASL Sign Language Recognition — Training Results
13
+
14
+ Trained by **SharoonArshad**
15
+
16
+ ## Results
17
+
18
+ | Metric | Score |
19
+ |--------|-------|
20
+ | Overall macro-F1 | **77.24%** |
21
+ | Accuracy | **68.51%** |
22
+ | Rare signs F1 | **99.47%** |
23
+ | Medium signs F1 | **59.25%** |
24
+ | Common signs F1 | **58.68%** |
25
+ | Training time | **52 minutes** |
26
+
27
+ ## Model Details
28
+ - **Architecture**: Transformer Encoder + Prototype Classifier
29
+ - **Parameters**: 3.57M
30
+ - **Classes**: 4,618 ASL signs
31
+ - **Input**: `[60 frames × 204 features]` body + hand landmarks
32
+ - **Training**: 3-phase curriculum (common → rare → fine-tune)
33
+
34
+ ## Files
35
+
36
+ | File | Description |
37
+ |------|-------------|
38
+ | `checkpoints/asl_v3_epoch050_score0.5728.pt` | Best PyTorch checkpoint |
39
+ | `checkpoints/asl_model.onnx` | ONNX export for deployment |
40
+ | `logs/training_history.json` | Loss + F1 for all 50 epochs |
41
+ | `logs/test_results.json` | Final test set results |
42
+ | `logs/train_v4.log` | Full training log |
43
+ | `label_map.json` | Sign ID → Sign name mapping |
44
+ | `tier_info.json` | Rare / medium / common class splits |
45
+ | `class_distribution.json` | Samples per class |
46
+ | `asl_results_complete.zip` | All files in one zip |
47
+
48
+ ## How to Load
49
+
50
+ ```python
51
+ import torch
52
+ from model_transformer import build_model
53
+ from config import CFG
54
+
55
+ ckpt = torch.load("asl_v3_epoch050_score0.5728.pt", map_location="cpu")
56
+ CFG.model.num_classes = ckpt["cfg"]["num_classes"] # 4618
57
+
58
+ model = build_model(CFG, feature_dim_override=204)
59
+ model.load_state_dict(ckpt["model_state"])
60
+ model.eval()
61
+
62
+ # Inference
63
+ features = torch.zeros(1, 60, 204) # replace with real data
64
+ padding_mask = torch.zeros(1, 60, dtype=torch.bool)
65
+ logits, _ = model(features, padding_mask)
66
+ predicted = logits.argmax(dim=-1).item()
67
+ print(f"Predicted sign ID: {predicted}")
68
+ ```