EdgeCrafter

A compact vision transformer for dense prediction on edge hardware, published upstream as three sibling models: ECDet, ECPose and ECSeg. LibreYOLO loads all three as one family, with the task carried by the checkpoint.

Tasks
detection, pose, instance segmentation
Sizes
s, m, l, x at 640 px
Install
pip install libreyolo
Support tier
Core, since v1.2.0. Core trainable detectors: features follow the flagships in the same release wave.
Upstream
EdgeCrafter by Intellindust AI Lab, Apache-2.0. Paper, source
Licenses
Code Apache-2.0, weights Apache-2.0. Commercial use

Install

EdgeCrafter needs no optional extra. Everything it imports is in the base install.

bash
pip install libreyolo

Adapter fine-tuning with lora=True is the exception, and needs the lora extra.

bash
pip install "libreyolo[lora]"

Predict

Weights download from Hugging Face on first use and are cached locally.

Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibreECs.pt")result = model(SAMPLE_IMAGE, save=True) for box in result.boxes:    print(box.cls, box.conf, box.xyxy)
CLI
libreyolo predict model=LibreECs.pt source=https://raw.githubusercontent.com/LibreYOLO/libreyolo/release/libreyolo/assets/parkour.jpg save=True
Pose
from libreyolo import LibreYOLO, SAMPLE_IMAGE # The -pose suffix in the filename selects the keypoint head, so no# task argument is needed here.model = LibreYOLO("LibreECs-pose.pt")result = model(SAMPLE_IMAGE, save=True) print(result.keypoints.xy)print(result.boxes.conf)
Instance segmentation
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibreECs-seg.pt")result = model(SAMPLE_IMAGE, save=True) print(result.masks.data.shape)

The task comes from the filename, so a -pose or -seg checkpoint selects its own head and takes no task argument. All three return the Results object every family returns, with result.keypoints added for pose and result.masks for segmentation. Pose covers one class, person, with the 17 COCO keypoints, and the count is fixed when the model is built. It has no box head, so each pose box is the bounding extent of its own keypoints, and the third keypoint channel is a constant rather than a per-point score.

conf and max_det filter the query selection; iou is accepted for API parity but has no effect, because all three heads decode a set of queries with no NMS step. See prediction for sources, streaming and result handling.

Variants

Four sizes. They all run at the same input resolution, so the table separates them by parameter count and accuracy.

CheckpointInput (px)mAP 50-95Params (M)
LibreECl64060.132.97
LibreECm64058.419.43
LibreECs64054.39.88
LibreECx64061.149.94

COCO val2017, 500 images. Measured by the LibreYOLO benchmark harness and published on Vision Analysis, where latency across hardware and runtimes is compared and the full run records live.

Upstream publishes ECDet, ECPose and ECSeg as three separate models rather than one model with three heads. They share the ECViT backbone and the hybrid encoder and differ only in the head, so LibreYOLO folds them into a single family and lets the checkpoint filename carry the task. A size letter therefore means the same backbone and encoder across all three, and predict, validate and export take the same arguments whichever one you load.

Train

All three tasks train through train(), which reads the task from the loaded checkpoint and picks the matching trainer.

Python
from libreyolo import LibreYOLO model = LibreYOLO("LibreECs.pt")model.train(    data="my-dataset.yaml",    epochs=50,    imgsz=640,    batch=8,    lr0=5e-4,)
CLI
libreyolo train model=LibreECs.pt data=my-dataset.yaml epochs=50 imgsz=640 batch=8 lr0=5e-4
Pose
from libreyolo import LibreYOLO # Needs a single-class keypoint dataset whose data.yaml declares# kpt_shape, and imgsz at the checkpoint's native size.model = LibreYOLO("LibreECs-pose.pt")model.train(    data="my-pose-dataset.yaml",    epochs=50,    imgsz=640,)
Instance segmentation
from libreyolo import LibreYOLO # Needs polygon labels, and imgsz at the checkpoint's native size.model = LibreYOLO("LibreECs-seg.pt")model.train(    data="my-dataset.yaml",    epochs=50,    imgsz=640,)
LoRA
from libreyolo import LibreYOLO model = LibreYOLO("LibreECs.pt")model.train(    data="my-dataset.yaml",    epochs=50,    lora=True,)

What has been checked for detection and segmentation: inference parity against upstream at 1e-5, layer by layer and per size, and that the loss and a single training step run on synthetic input. What has not, per train()'s own docstring: convergence of a full fine-tune, multi-GPU training, the stop-augmentation best-reload step, and the Objects365 to COCO class remap. The pose path follows DETRPose's published recipe, a Hungarian matcher over class, keypoint L1 and OKS costs with contrastive keypoint denoising, and its convergence has not been checked end to end either.

Left alone, the trainer runs 74 epochs at lr0=5e-4 with mixed precision on, following upstream's recipe: AdamW, a flat cosine schedule, EMA at 0.9999 and ImageNet-normalized inputs. Pose and segmentation both require imgsz at the checkpoint's native size, because their evaluation anchor grid is built when the model is constructed; a different value raises before the run starts. Pose also requires a single-class dataset whose data.yaml declares kpt_shape, with a keypoint count matching the head.

lora=True applies to detection only; pose and segmentation raise a ValueError on it. On Apple silicon the trainer keeps the run on the GPU and sends one operation to CPU, the grid-sample backward inside deformable attention, which PyTorch does not implement in Metal.

See training for datasets, augmentation, multi-GPU and loggers.

Validate

val() returns a dictionary keyed by metric name, and prints per-class results when verbose is left on.

Python
from libreyolo import LibreYOLO model = LibreYOLO("LibreECs.pt")metrics = model.val(data="my-dataset.yaml") print(metrics["metrics/mAP50-95"])print(metrics["metrics/mAP50"])
CLI
libreyolo val model=LibreECs.pt data=my-dataset.yaml
Pose
from libreyolo import LibreYOLO model = LibreYOLO("LibreECs-pose.pt")metrics = model.val(data="my-pose-dataset.yaml") print(metrics["metrics/keypoints_mAP50-95"])print(metrics["metrics/keypoints_mAP50"])
Instance segmentation
from libreyolo import LibreYOLO model = LibreYOLO("LibreECs-seg.pt")metrics = model.val(data="my-dataset.yaml") print(metrics["metrics/mAP50-95(M)"])   # masksprint(metrics["metrics/mAP50-95(B)"])   # boxes

Pose reports keypoint OKS metrics under metrics/keypoints_*. Segmentation reports masks under the plain metrics/mAP50-95 key and repeats both views in one pass, boxes under (B) and masks under (M).

Export

TaskONNXTorchScriptExecuTorchTensorRTOpenVINOPaddleMNNRKNNncnnTFLiteCoreMLCore AI
DetectionDetection to ONNX: supported. Detection to TorchScript: supported. Detection to ExecuTorch: supported. Detection to TensorRT: supported. Detection to OpenVINO: supported. Detection to Paddle: supported. Detection to MNN: supported. Detection to RKNN: not supportedDetection to ncnn: not supportedDetection to TFLite: not supportedDetection to CoreML: not supportedDetection to Core AI: supported.
PosePose to ONNX: supported. Pose to TorchScript: supported. Pose to ExecuTorch: supported. Pose to TensorRT: supported. Pose to OpenVINO: supported. Pose to Paddle: supported. Pose to MNN: not supportedPose to RKNN: not supportedPose to ncnn: not supportedPose to TFLite: not supportedPose to CoreML: not supportedPose to Core AI: not supported
Instance segmentationInstance segmentation to ONNX: supported. Instance segmentation to TorchScript: supported. Instance segmentation to ExecuTorch: supported. Instance segmentation to TensorRT: supported. Instance segmentation to OpenVINO: supported. Instance segmentation to Paddle: supported. Instance segmentation to MNN: not supportedInstance segmentation to RKNN: not supportedInstance segmentation to ncnn: not supportedInstance segmentation to TFLite: not supportedInstance segmentation to CoreML: not supportedInstance segmentation to Core AI: not supported

An exported artifact loads back through LibreYOLO() on its file suffix, so a .onnx or .engine file behaves like a checkpoint and returns the same Results. Pose and segmentation export at a fixed 640 by 640 input rather than dynamic shapes, and several detection targets are fixed-canvas too, including OpenVINO, Paddle, MNN, ExecuTorch and Core AI. Export lists the arguments every format accepts and the extras a few of them add.

Python
from libreyolo import LibreYOLO model = LibreYOLO("LibreECs.pt")model.export(format="onnx", imgsz=640)model.export(format="tensorrt", imgsz=640, half=True)
CLI
libreyolo export model=LibreECs.pt format=onnx imgsz=640libreyolo export model=LibreECs-pose.pt format=onnx imgsz=640libreyolo export model=LibreECs-seg.pt format=onnx imgsz=640
Use the exported file
from libreyolo import LibreYOLO, SAMPLE_IMAGE # The factory routes on the file suffix, so an exported artifact loads# like any checkpoint and returns the same Results object.model = LibreYOLO("LibreECs.onnx")result = model(SAMPLE_IMAGE) print(result.boxes.xyxy)

Checkpoints

Every published weight file for this family.

FileInput (px)Weights license
Detection
LibreECs.pt640apache-2.0
LibreECm.pt640apache-2.0
LibreECl.pt640apache-2.0
LibreECx.pt640apache-2.0
Pose
LibreECs-pose.pt640apache-2.0
LibreECm-pose.pt640apache-2.0
LibreECl-pose.pt640apache-2.0
LibreECx-pose.pt640apache-2.0
Instance segmentation
LibreECs-seg.pt640apache-2.0
LibreECm-seg.pt640apache-2.0
LibreECl-seg.pt640apache-2.0
LibreECx-seg.pt640apache-2.0

Every file above exists in the LibreYOLO org today and downloads on first use.

Licensing

Check the license on the Hugging Face repository of the specific weights you download. Every checkpoint in the LibreYOLO org carries one, and they are not always the same across a family. That repository is the authoritative source; the summary below describes what applied when this page was last verified.

This is a description of the licenses involved, not legal advice. If the answer matters commercially, read the licenses yourself and take your own counsel.

Original work
EdgeCrafter, Intellindust AI Lab
Upstream license
Apache-2.0
LibreYOLO code
MIT
Weights
Apache-2.0, republished at huggingface.co/LibreYOLO
Interpretation
Apache-2.0 is a permissive license, so these weights can be used in commercial and closed-source products. It asks you to keep its license text and attribution notices with any copy of the weights you redistribute, and it grants a patent license. One license covers all three upstream models, so the detection, pose and segmentation weights carry identical terms, and weights you train yourself on your own data are yours.

Citation

@article{liu2026edgecrafter,
  title={EdgeCrafter: Compact ViTs for Edge Dense Prediction via Task-Specialized Distillation},
  author={Liu, Longfei and Hou, Yongjie and Li, Yang and Wang, Qirui and Sha, Youyang and Yu, Yongjun and Wang, Yinzhi and Ru, Peizhe and Yu, Xuanlong and Shen, Xi},
  journal={arXiv},
  year={2026}
}

Copied from the authors' citation block at github.com/Intellindust-AI-Lab/EdgeCrafter#-citation.

Verified against LibreYOLO v1.5.0. Support tables, checkpoints and benchmark numbers on this page are generated from the released library and the published weights, not written by hand.