Models

Edges models

8 edges models. Each section says what the model is, whether it may be used commercially and how fast it is; licences and checks are under Details.

Input: one RGB image. Output: a line / edge map [H, W] in [0, 1] at the input size (1 = line), the ControlNet preprocessors (line art, HED, PiDiNet, TEED / Anyline); M-LSD also returns straight line segments.

Measured on RTX 5060 Ti, torch 2.14.1+cu130; fastforks bench MODEL --size HxW measures yours. The summary uses one input, 1080x1920: kernels time with its speed-up over the faster original run, and kernels peak reserved memory with its ratio to the smaller original one. Where measured (one variant per family), a variant's table also lists portable under torch.compile and the fp16 TensorRT engine of portable (export; memory: the engine's device memory + torch's peak). – = not measured; no kernels = the family has no kernels backend (reason under its table). Reserved memory is the allocator's cache: kernels (CUDA graphs, cuDNN workspaces) can reserve a few percent to some tens of percent more than portable at the same allocated peak.

Other devices: Apple M1 Pro 16 GB, NVIDIA L4, NVIDIA L40S, NVIDIA A10, NVIDIA A100-SXM4-40GB, NVIDIA RTX PRO 6000; across devices.

modelcommercial
anylineyes
hedyes
lineartyes
lineart-animeyes
lineart-coarseyes
mlsdyes
pidinetno
teedyes

All models

Modes, licences, training data and outputs per model

Commercial status per variant: yes if the code and the weights licence both allow commercial use (the training data is listed but does not change it; weights without a licence of their own are assumed to carry the code licence); no if either forbids it; unclear for custom licence terms (treat as no).

modelmodescode licenceweights licencetraining datacommercialoutputs
anylineportable, kernelsMITLicenseRef-CreativeML-OpenRAIL-PlusPlus-Munstatedyesedges
hedportable, kernelsApache-2.0Apache-2.0unstatedyesedges
lineartportable, kernelsMITMIT (assumed from code)unstatedyesedges
lineart-animeportable, kernelsMITMIT (assumed from code)unstatedyesedges
lineart-coarseportable, kernelsMITMIT (assumed from code)unstatedyesedges
mlsdportable, kernelsApache-2.0Apache-2.0unstatedyesedges, lines
pidinetportable, kernelsLicenseRef-research-onlyLicenseRef-research-only (assumed from code)unstatedno (code: LicenseRef-research-only (noncommercial); weights: LicenseRef-research-only (assumed from code))edges
teedportable, kernelsMITMITbipedyesedges

Training datasets

iddatasetlicencecommercial use
bipedBIPED (Barcelona Images for Perceptual Edge Detection)LicenseRef-research-onlyno