YOLO12x COCO weights for 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.

COCO val2017 (5000 images)

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

Speed (model forward only)

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

Usage

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

Licence

AGPL-3.0, inherited from Ultralytics YOLO12.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train youakrim/yolo12x-mlx

Collection including youakrim/yolo12x-mlx

Evaluation results