#2929th of 37 in ML frameworks and libraries

ncnn

C++ neural network inference library for mobile, embedded and desktop devices

Stars
23.9k
License
custom license
Last commit
Oct 2026
Last release
May 2026
Language
C++

Missed the latest GitHub check; these facts may be older.

Overview

ncnn runs neural network inference on CPU or Vulkan GPU with no third-party runtime dependencies. It ships prebuilt packages for Android, iOS, HarmonyOS, macOS, Linux, Windows and WebAssembly, plus cross-compile guides for ARM, MIPS, RISC-V and LoongArch boards. The pnnx tool converts PyTorch and ONNX models to ncnn's param/bin format, and C++ and Python APIs are provided.

Who it is for: Developers deploying trained models to phones, embedded boards and browsers

Strengths

  • No third-party runtime dependencies; CPU and Vulkan GPU backends
  • Prebuilt packages for Android, iOS, HarmonyOS, Windows, Linux, macOS and WebAssembly
  • Builds for many architectures: ARM, MIPS, ppc64, riscv64, loongarch64
  • pnnx converts PyTorch and ONNX models; C++ and Python APIs

Weaknesses

  • Inference only; training is not covered
  • Models must be converted to ncnn param/bin format first
  • No HTTP serving layer; it is an embedded library
  • License detected as NOASSERTION; README badge says BSD 3-Clause

What it needs

  • GPU optional
  • Models: PyTorch (via pnnx), ONNX (via pnnx), ncnn param/bin

Also in ML frameworks and libraries

See all 37
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks167.7k starsApache-2.095 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd for deep learning104.7k starscustom license94 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models62.5k starsAGPL-3.090 out of 100
#4supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.2k starsMIT87 out of 100
#5pytorch-image-modelsPyTorch library of image models, pretrained weights and reference training scripts37.2k starsApache-2.086 out of 100