detection-datasets/coco
Viewer • Updated • 122k • 29.4k • 92
How to use youakrim/yolo12m-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download youakrim/yolo12m-mlx --local-dir yolo12m-mlx
Official Ultralytics YOLO12m COCO weights (20.3 M parameters), converted to NumPy .npz for yolo12-mlx, a YOLO12 implementation on Apple MLX. The weights are unchanged: only the tensor layout is converted (OIHW to OHWI). No retraining.
Other sizes: see the collection YOLO12 for MLX.
Same preprocessing (letterbox 640) and same NMS (conf 0.001, IoU 0.7, max 300 detections) for both backends, scored with pycocotools.
| Backend | mAP50-95 | mAP50 |
|---|---|---|
| MLX (this repo) | 0.5217 | 0.6914 |
PyTorch (official .pt) |
0.5217 | 0.6913 |
Apple M5, 640x640, batch 1, median of 100 runs after warm-up, GPU synchronised. NMS and I/O excluded.
| Backend | ms / image |
|---|---|
| MLX fp32 | 45.43 |
| MLX bf16 | 32.69 |
| PyTorch MPS fp32 | 49.62 |
| PyTorch MPS fp16 | 27.25 |
git clone https://github.com/youakrim/yolo12-mlx && cd yolo12-mlx
scripts/setup.sh
hf download youakrim/yolo12m-mlx yolo12m-coco.npz --local-dir .
python -m yolo12mlx.predict yolo12m-coco.npz image.jpg --scale m --nc 80
AGPL-3.0, inherited from Ultralytics YOLO12.