Views
No views yet
| Compression Strength | GFLOPS | Parameters | Model Size (MB) | mAP50-95 |
|---|---|---|---|---|
| 0 (baseline) | 24.0 | ~9.1M | 36.8 | 0.412 |
| 1 | 22.3 | ~8.6M | 34.8 | 0.406 |
| 2 | 21.1 | ~8.3M | 33.3 | 0.400 |
| 3 | 19.9 | ~7.9M | 31.7 | 0.394 |
| 4 | 18.6 | ~7.5M | 30.1 | 0.377 |
| 5 | 17.3 | ~7.0M | 28.4 | 0.365 |
5), the model significantly outperforms a smaller YOLOv5n baseline while being more resource-efficient than the original YOLOv5s.1import torch
2
3if __name__ == '__main__':
4 model_file = 'YOLOv5_compression_strength_5_unquantized.pt'
5 model = torch.load(model_file, map_location='cpu')
6 model.eval()
7
8 inputs = torch.randn(1, 3, 640, 640)
9 results = model(inputs)