Views
No views yet
Input Sequence [8 × 3 × 128 × 128]
↓
EfficientNet-B0 Backbone (shared weights)
↓
256-D Embeddings [8 × 256]
↓
2-Layer Bidirectional LSTM (hidden: 128)
↓
Concatenated Hidden States [512]
↓
├─→ Tens Digit Head (10 classes)
└─→ Units Digit Head (10 classes)pip install torch torchvision pillow1import torch
2from PIL import Image
3from huggingface_hub import hf_hub_download
4
5# Download model
6model_path = hf_hub_download(
7 repo_id="prxkc/jersey-number-recognition",
8 filename="best_temporal.pt"
9)
10
11# Load checkpoint
12checkpoint = torch.load(model_path, map_location='cpu')
13
14# Note: You'll need the model architecture code
15# See GitHub repository for complete implementation
16# GitHub: https://github.com/prxkc/jersey-number-recognition| Metric | Anchor (Baseline) | Temporal (Ours) | Improvement |
|---|---|---|---|
| Full Number Acc | 48.97% | 92.12% | +43.15% |
| Tens Digit Acc | 92.81% | 98.63% | +5.82% |
| Units Digit Acc | 53.31% | 93.04% | +39.73% |
| Loss | 1.358 | 0.336 | -75.3% |
| Jersey # | Test Sequences | Accuracy |
|---|---|---|
| 4 | 164 | 95.73% |
| 6 | 134 | 94.78% |
| 8 | 301 | 90.70% |
| 9 | 216 | 90.28% |
| 48 | 4 | 100.00% |
| 49 | 19 | 89.47% |
| 66 | 19 | 100.00% |
| 89 | 16 | 93.75% |