detection-datasets/coco
Viewer • Updated • 122k • 29.3k • 92
How to use youakrim/yolo12x-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download youakrim/yolo12x-mlx --local-dir yolo12x-mlx
Official Ultralytics YOLO12x COCO weights (59.4 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.5484 | 0.7150 |
PyTorch (official .pt) |
0.5484 | 0.7150 |
Apple M5, 640x640, batch 1, median of 100 runs after warm-up, GPU synchronised. NMS and I/O excluded.
| Backend | ms / image |
|---|---|
| MLX fp32 | 123.97 |
| MLX bf16 | 93.02 |
| PyTorch MPS fp32 | 123.97 |
| PyTorch MPS fp16 | 60.25 |
git clone https://github.com/youakrim/yolo12-mlx && cd yolo12-mlx
scripts/setup.sh
hf download youakrim/yolo12x-mlx yolo12x-coco.npz --local-dir .
python -m yolo12mlx.predict yolo12x-coco.npz image.jpg --scale x --nc 80
AGPL-3.0, inherited from Ultralytics YOLO12.