Views
No views yet
| Metric | Value |
|---|---|
| mAP@0.5 | 0.4365 |
| mAP@0.6 | 0.3804 |
| mAP@0.7 | 0.3135 |
| mAP@0.8 | 0.2257 |
| mAP@0.9 | 0.0975 |
| mAP@0.5:0.95 | 0.2672 |
| Precision | 0.6479 |
| Recall | 0.3919 |
weights/best.pt: Best checkpoint (stripped optimizer)weights/last.pt: Final checkpoint (stripped optimizer)weights/epoch_XXX.pt: Checkpoints with per-class AP dataresults.txt: Training log with all metricshyp.yaml: Hyperparametersopt.yaml: Training options1import torch
2from models.experimental import attempt_load
3
4# Load model
5model = attempt_load('weights/best.pt', map_location='cuda')
6
7# Inference
8img = torch.randn(1, 3, 320, 320).cuda()
9pred = model(img)1import torch
2
3# Load checkpoint with per-class AP
4ckpt = torch.load('weights/epoch_499.pt', weights_only=False)
5
6# Access per-class AP
7per_class_ap = ckpt.get('per_class_ap', {})
8for class_id, ap_data in per_class_ap.items():
9 print(f"{ap_data['name']}: mAP@.5={ap_data['ap50']:.3f}, mAP@.7={ap_data['ap70']:.3f}")