Skip to main content
LibreYOLO, MIT licensed computer vision. pip install libreyolo

LibreYOLO is an MIT licensed computer vision library to train, run, and export computer vision models.

PyPI PyPI Downloads License Documentation Hugging Face Open in Colab Greptile: The War on Bugs

English | 简体中文

⭐ Support LibreYOLO. The best way to help is to star the repo. Feel free to open an issue if you encounter problems or have suggestions, and code contributions are very welcome (see CONTRIBUTING.md). If you want to contribute economically, that is very welcome: see the sponsorship program.

LibreYOLO detection on the Guggenheim Bilbao image

Install

pip install libreyolo
Optional extras

The base install covers YOLOv9 and the other core detectors, training, and inference. Add an extra when you need a heavier family or an export backend. Comma-separate to combine, for example pip install "libreyolo[rfdetr,hub-kernels]".

Group Extras
Export onnx, tensorrt, openvino, coreml, coreai, tflite (alias litert), ncnn, mnn, paddle, executorch
Serving triton
Models rfdetr, vlm, sam, openvocab, clip, siglip2, eomt, midas, modus, sensenova, gaze, gen
Training lora, plots, tensorboard, mlflow, wandb, comet, clearml, neptune, dvclive
Speed fast-eval, hub-kernels
Sources stream
Everything pip install "libreyolo[all]"

executorch, coreai, paddle and neptune are deliberately left out of all: they pin torch, onnx or protobuf in ways that would drag the rest of the environment with them. fast-eval and hub-kernels are not in all either. Full list and per-backend notes in the install guide.

Install from source
git clone https://github.com/LibreYOLO/libreyolo.git
cd libreyolo
pip install -e .

A plain clone checks out release, the stable branch matching the published package. For unreleased work, git checkout dev.

If huggingface.co is blocked (mainland China)

Weights download from Hugging Face. LibreYOLO honours the standard HF_ENDPOINT variable, so you can point it at a mirror such as hf-mirror.com, a community mirror not run by Hugging Face or LibreYOLO:

export HF_ENDPOINT=https://hf-mirror.com

Or download the file manually, for example https://hf-mirror.com/LibreYOLO/LibreYOLO9t/resolve/main/LibreYOLO9t.pt, and pass its local path: LibreYOLO("path/to/LibreYOLO9t.pt").

Train

from libreyolo import LibreYOLO

model = LibreYOLO("LibreYOLO9t.pt")
model.train(data="dataset.yaml", epochs=100, imgsz=640)
libreyolo train --model yolo9-t --data dataset.yaml --epochs 100

See the training guide to read about multi-GPU, LoRA, layer freezing, distillation, from-scratch training, resume, mixed precision, early stopping and logging.

Inference

from libreyolo import LibreYOLO, SAMPLE_IMAGE

model = LibreYOLO("LibreYOLO9t.pt")
result = model(SAMPLE_IMAGE, save=True)

Load any model straight from Hugging Face by its repo name: LibreYOLO("LibreYOLO/LibreRFDETRn").

Sources are not just files. Point it at a webcam, an RTSP stream, a video, a directory, a YouTube URL or your screen:

libreyolo predict --model yolo9-t --source 0 --show          # webcam
libreyolo predict --model yolo9-t --source rtsp://camera/1   # network camera
libreyolo predict --model yolo9-t --source screen            # screen capture

See the inference guide to read about sources, results, thresholds and performance.

Export

Twelve formats: ONNX, TorchScript, TensorRT, OpenVINO, CoreML, Core AI, TFLite (LiteRT), NCNN, MNN, RKNN, Paddle and ExecuTorch. Plus NVIDIA Triton serving and DeepStream config generation.

libreyolo export --model yolo9-t --format onnx

See the export guide for each format. Support varies by family and task, see the export matrix.

Documentation

  • Docs covers install, tasks, models, training, prediction, export and the CLI
  • Benchmarks on Vision Analysis
  • CHANGELOG.md for what changed

Complete list of models

LibreYOLO is organized by task, such as detection, segmentation or classification. Each task has several models, and each model comes in several variants. For example, LibreYOLO9t is task detection, model YOLO9 and variant t, which means tiny. Click a model to open its documentation page.

All tasks and models
Task Models
Detection YOLOv9, RF-DETR, YOLOX, YOLO-NAS, D-FINE, DEIM, RT-DETR v1/v2/v4, RTMDet, PicoDet, PP-YOLOE, YOLOv7, EfficientDet, and the classics: DETR, Deformable DETR, DINO-DETR, LW-DETR, Faster R-CNN, RetinaNet, SSD, FCOS, CenterNet
Tiny objects TinyFormer, Dome-DETR (aerial, drone, remote sensing)
Instance segmentation RF-DETR, RTMDet, D-FINE, Mask R-CNN
Promptable segmentation SAM, SAM 2, SAM 3, MobileSAM, EdgeTAM, PicoSAM3
Semantic segmentation SegFormer, PIDNet, PP-LiteSeg, U-Net, DeepLabv3, FCN, LingBot-Vision, DINOv2, EoMT
Panoptic segmentation EoMT
Pose RF-DETR, YOLO-NAS, HRNet, DEKR, EC
Oriented boxes RF-DETR, RT-DETRv2, RiO-DETRv2, YOLO-NAS-R
3D detection WildDet3D, 3D-MOOD, FCOS3D, DetAny3D (separate runtime)
Classification MobileNetV4, ConvNeXt, EfficientNetV2, ResNet, ViT, Swin, DeiT, VGG, AlexNet, CLIP, SigLIP2, DINOv2
Depth Depth Anything 3, Depth Anything V2, Video Depth Anything, ZipDepth, MiDaS, MoGe-3, Speridlabs Iris-Z
Surface normals MoGe-3, MoGe-2
Depth, normals and albedo Marigold V2
Edges DexiNed, TEED
Optical flow SEA-RAFT, NeuFlow v2, RAFT, WAFT, FlowSeek, DPFlow, UniMatch, MEMFOF
Embeddings LibreFaceEmbedder, CLIP, SigLIP2, Perception Encoder (image, text, whole-video; also zero-shot classify), DINOv2
Video embeddings V-JEPA 2 (clip embedding and trainable classification probe), LeVJEPA (clip and patch embeddings; CC BY-NC 4.0 weights)
Body mesh SAM 3D Body, InstantHMR
Restoration DDColor, HVI-CIDNet, LaMa, NAFNet, QuickSRNet, Real-ESRGAN, SwinIR
Background removal BiRefNet, FeyNobg, BEN2, ViTMatte
OCR PP-OCR, DeepSeek-OCR, DeepSeek-OCR-2, PaddleOCR-VL, GLM-OCR, Falcon OCR
Document layout PP-DocLayoutV3 (regions plus reading order)
Point detection FOMO, LocateAnything
Gaze L2CS
Open vocabulary and VLMs Grounding DINO, OWLv2, OmDet-Turbo, OV-DEIM, Florence-2, Kosmos-2, Qwen3-VL, InternVL3, LFM2-VL, North Micro Vision, SmolVLM2, Gemma 4, Moondream, Molmo2, WeVisOne-VL, MODUS
Robot actions (VLA) SmolVLA, ACT, Diffusion Policy
Image generation FLUX.2 klein, SANA-Sprint, PRX, PRXPixel, Speridlabs Iris-Z, Open Vision Banana
3D generation Speridlabs Idol, TripoSplat, TRELLIS, TRELLIS.2, LGM, TripoSR, CRM, Direct3D-S2

Per-family sizes, checkpoints and parity evidence live in the model reference.

Follow us

Contributors

LibreYOLO contributors

Sponsors

LibreYOLO is built in free time. To take it to the next level, we want to train new models, such as LibreYOLO26 and MIT retrains of families with restrictive weights. That costs rented GPU time, and to pay for it we created the LibreYOLO Sponsorship Program. You can read all the details in this article.

Sponsor

Supporters. Thank you to everyone who has donated:

Mattia Di Giusto Thomas Lefebvre

License

  • Code: MIT License.
  • Weights: Check the license of the specific Hugging Face repo before you use one commercially. Every LibreYOLO Hugging Face model states its license.

Metadata

Release files for libreyolo 1.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libreyolo 1.8.0
File Size Uploaded Provenance Actions
libreyolo-1.8.0.tar.gz 7.5 MB With provenance Details for libreyolo-1.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for libreyolo 1.8.0
File Interpreter ABI Platform Actions
libreyolo-1.8.0-py3-none-any.whl Python 3 none any Details for libreyolo-1.8.0-py3-none-any.whl

Total release size: 15.7 MB

Release files / libreyolo-1.8.0.tar.gz

Download URL libreyolo-1.8.0.tar.gz
Size 7.5 MB
Tags Source
SHA-256 checksum
How to use checksums
6387df40d5132a62e7d202f052971e61f253161f022533e9ce8819dca1f176c7
BLAKE2b-256 checksum
How to use checksums
92343a2b5731c8a0c010e63cd7be9aa033a4d498d6c07ab3a186d481d6f3dda3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / libreyolo-1.8.0-py3-none-any.whl

Download URL libreyolo-1.8.0-py3-none-any.whl
Size 8.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3dc504a437527ac5f6fb3ba7f242d266495fe38a5948f3fdd22c2e4eefbdf2bd
BLAKE2b-256 checksum
How to use checksums
0505b8bcfe9991f421fe6c91859c3668772d5953004553df01969680004b5170
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for libreyolo 1.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for libreyolo-1.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page