Object Detection.
100% MIT Licensed.

LibreYOLO, the YOLO library. Making YOLO accessible again, the way its creators always intended it to be.

1from libreyolo import LibreYOLO, SAMPLE_IMAGE
2
3model = LibreYOLO("LibreYOLO9t.pt")
4results = model(SAMPLE_IMAGE, save=True)
LibreYOLO detection result
Detected 1 object (person)
0.023s

Support LibreYOLO

The best way to help is to star the repo. If you hit a problem or have a suggestion, open an issue, and code contributions are very welcome.

Questions, training crashes, and release news get discussed on r/LibreYOLO. Come say hi.

One API.
23 tasks.

Detection, segmentation, pose, depth, OCR and more. Select a task to see the model output and available models.

One library, the whole workflow

Train, validate, export, and deploy detection models from one permissive, MIT-licensed package.

Truly MIT

No AGPL anywhere in the dependency chain. Use it in closed-source products, SaaS, embedded systems.

144 families, 23 tasks

RF-DETR, D-FINE, DEIM, EdgeCrafter, RT-DETR, YOLOv9, YOLOX, SAM 3, Depth Anything 3, OCR, and VLMs behind one LibreYOLO() call.

Batteries included

Any input format: paths, URLs, PIL, NumPy, OpenCV, tensors, bytes. Tiled inference for large images. Auto-download weights from HuggingFace.

Train

Fine-tune on custom YOLO or COCO datasets with built-in augmentation, mixed precision, and early stopping. Resume from any checkpoint.

Validate

COCO-standard evaluation with mAP50, mAP50-95, precision, and recall on COCO or custom datasets. Per-class metrics and confusion matrix out of the box.

Quantize & export

Built-in PyTorch quantization (9 recipes, QAT, QAD) and 13 export formats including ONNX, TensorRT, OpenVINO, CoreML, TFLite, ExecuTorch, and Axelera.

r/computervision

What the Community Says

“You have my hearty support for this. I'll be so happy when there is a good, community maintained, MIT licensed alternative to Ultralytics.”

u/Covered_in_bees_

LibreYOLO is a huge effort. Messages like these keep us going.

Start Building Today

$ pip install libreyolo