Download & Build status
https://github.com/Tencent/ncnn/releases/latest
![]() |
**[how to build ncnn library](https://github.com/Tencent/ncnn/wiki/how-to-build) on Linux / Windows / macOS / Raspberry Pi3, Pi4 / POWER / Android / NVIDIA Jetson / iOS / WebAssembly / AllWinner D1 / Loongson 2K1000** | ||
Source |
[ |
||
![]() |
- [Build for Android](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-android) - [Build for Termux on Android](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-termux-on-android) | ||
Android |
[ |
[ |
|
Android shared |
[ |
||
![]() |
- [Build for HarmonyOS with cross-compiling](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-harmonyos-with-cross-compiling) | ||
HarmonyOS |
[ |
||
HarmonyOS shared | |||
![]() |
- [Build for iOS on macOS with xcode](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-ios-on-macos-with-xcode) | ||
iOS |
[ |
[ |
|
iOS-Simulator |
[ |
||
![]() |
- [Build for macOS](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-macos) | ||
macOS |
[ |
[ |
|
Mac-Catalyst |
[ |
[ |
|
watchOS |
[ |
[ |
|
watchOS-Simulator |
[ |
||
tvOS |
[ |
[ |
|
tvOS-Simulator |
[ |
||
visionOS |
[ |
[ |
|
visionOS-Simulator |
[ |
||
Apple xcframework |
[ |
||
![]() |
- [Build for Linux / NVIDIA Jetson / Raspberry Pi3, Pi4 / POWER](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-linux) | ||
Ubuntu 20.04 |
[ |
[ |
|
Ubuntu 22.04 |
[ |
||
![]() |
- [Build for Windows x64 using VS2017](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-windows-x64-using-visual-studio-community-2017) | ||
VS2015 |
[ |
[ |
|
VS2017 |
[ |
||
VS2019 |
[ |
||
VS2022 |
[ |
||
![]() |
- [Build for WebAssembly](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-webassembly) | ||
WebAssembly |
[ |
[ |
|
|
- [Build for ARM Cortex-A family with cross-compiling](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-arm-cortex-a-family-with-cross-compiling) - [Build for Hisilicon platform with cross-compiling](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-hisilicon-platform-with-cross-compiling) - [Build for AllWinner D1](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-allwinner-d1) - [Build for Loongson 2K1000](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-loongson-2k1000) - [Build for QNX](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-qnx) | ||
Linux (arm) |
[ |
||
Linux (aarch64) |
[ |
||
Linux (mips) |
[ |
||
Linux (mips64) |
[ |
||
Linux (ppc64) |
[ |
||
Linux (riscv64) |
[ |
||
Linux (loongarch64) |
[ |
支持大部分常用的 CNN 网络
- Classical CNN: VGG AlexNet GoogleNet Inception …
- Practical CNN: ResNet DenseNet SENet FPN …
- Light-weight CNN: SqueezeNet MobileNetV1 MobileNetV2/V3 ShuffleNetV1 ShuffleNetV2 MNasNet …
- Face Detection: MTCNN RetinaFace scrfd …
- Detection: VGG-SSD MobileNet-SSD SqueezeNet-SSD MobileNetV2-SSDLite MobileNetV3-SSDLite …
- Detection: Faster-RCNN R-FCN …
- Detection: YOLOv2 YOLOv3 MobileNet-YOLOv3 YOLOv4 YOLOv5 YOLOv7 YOLOX …
- Detection: NanoDet
- Segmentation: FCN PSPNet UNet YOLACT …
- Pose Estimation: SimplePose …
HowTo
use ncnn with alexnet with detailed steps, recommended for beginners :)
ncnn 组件使用指北 alexnet 附带详细步骤,新人强烈推荐 :)
use netron for ncnn model visualization
out-of-the-box web model conversion
ncnn param and model file spec
ncnn operation param weight table
how to implement custom layer step by step
FAQ
功能概述
- 支持卷积神经网络,支持多输入和多分支结构,可计算部分分支
- 无任何第三方库依赖,不依赖 BLAS/NNPACK 等计算框架
- 纯 C++ 实现,跨平台,支持 Android / iOS 等
- ARM Neon 汇编级良心优化,计算速度极快
- 精细的内存管理和数据结构设计,内存占用极低
- 支持多核并行计算加速,ARM big.LITTLE CPU 调度优化
- 支持基于全新低消耗的 Vulkan API GPU 加速
- 可扩展的模型设计,支持 8bit 量化 和半精度浮点存储,可导入 caffe/pytorch/mxnet/onnx/darknet/keras/tensorflow(mlir) 模型
- 支持直接内存零拷贝引用加载网络模型
- 可注册自定义层实现并扩展
- 恩,很强就是了,不怕被塞卷 QvQ