Views
No views yet
| Metric | Value |
|---|---|
| mAP50 | 99.5% |
| mAP50-95 | 97.4% |
| Architecture | YOLOv11n |
| Input size | 640x640 |
| Epochs | 10 |
| Training data | 4000 synthetic board images |
detector/weights/best.pt (PyTorch), detector/weights/best.onnx (ONNX)| Metric | Value |
|---|---|
| Overall accuracy | 99.9% |
| Number accuracy | 100% |
| Color accuracy | 100% |
| Shape accuracy | 99.9% |
| Fill accuracy | 99.8% |
| Architecture | MobileNetV3-Small |
| Input size | 224x224 |
| Training data | ~9500 cropped card images (81 classes) |
classifier/classifier_best.pt1from ultralytics import YOLO
2from PIL import Image
3
4# Load detector
5detector = YOLO("detector/weights/best.pt")
6results = detector("board_photo.jpg", conf=0.25)
7
8# Load classifier
9import torch
10from src.train.classifier import SetCardClassifier
11
12classifier = SetCardClassifier(pretrained=False)
13checkpoint = torch.load("classifier/classifier_best.pt", map_location="cpu")
14classifier.load_state_dict(checkpoint["model_state_dict"])
15classifier.eval()