ncnn is a high-performance neural network inference framework optimized for the mobile platform
ncnn is a high-performance neural network inference framework optimized for the mobile platform
ncnn is a high-performance neural network inference framework optimized for mobile, embedded, and desktop deployment. It has no third-party runtime dependencies, runs across CPU and Vulkan GPU backends, and provides tools such as pnnx for converting PyTorch and ONNX models to ncnn. Developers can deploy deep learning models efficiently on phones, PCs, browsers, and edge devices. ncnn is currently being used in many Tencent applications, such as QQ, Qzone, WeChat, Pitu, and so on.
ncnn 是一个面向移动端、嵌入式和桌面端部署优化的高性能神经网络推理框架。 ncnn 无第三方运行时依赖,支持 CPU 和 Vulkan GPU 后端,并提供 pnnx 等工具将 PyTorch 和 ONNX 模型转换为 ncnn 模型。 基于 ncnn,开发者可以将深度学习模型高效部署到手机、PC、浏览器和边缘设备上。 ncnn 目前已在腾讯多款应用中使用,如:QQ,Qzone,微信,天天 P 图等。
The recommended beginner path is PyTorch -> pnnx -> ncnn.
Install pnnx in a PyTorch environment Export a PyTorch model to ncnn This generates |
Run with ncnn C++ API Or use Python |
See pnnx, use ncnn with PyTorch or ONNX, Python API, and examples for complete workflows.
|
技术交流 QQ 群 637093648 (超多大佬) 答案:卷卷卷卷卷(已满) |
Telegram Group | Discord Channel |
|
Pocky QQ 群(MLIR YES!) 677104663 (超多大佬) 答案:multi-level intermediate representation |
||
|
他们都不知道 pnnx 有多好用群 818998520 (新群!) |
https://github.com/Tencent/ncnn/releases/latest
how to build ncnn library on Linux / Windows / macOS / Raspberry Pi3, Pi4 / POWER / Android / NVIDIA Jetson / iOS / WebAssembly / AllWinner D1 / Loongson 2K1000 |
||
| Source | ||
| Android | ||
| Android shared | ||
| HarmonyOS | ||
| HarmonyOS shared | ||
| iOS | ||
| iOS-Simulator | ||
| macOS | ||
| Mac-Catalyst | ||
| watchOS | ||
| watchOS-Simulator | ||
| tvOS | ||
| tvOS-Simulator | ||
| visionOS | ||
| visionOS-Simulator | ||
| Apple xcframework | ||
| Ubuntu 22.04 | ||
| Ubuntu 24.04 | ||
| VS2015 | ||
| VS2017 | ||
| VS2019 | ||
| VS2022 | ||
| WebAssembly | ||
| Linux (arm) | ||
| Linux (aarch64) | ||
| Linux (mips) | ||
| Linux (mips64) | ||
| Linux (ppc64) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Al |
邀请 ncnn 加入 GithubStarMate,让更多人发现你的作品
`load_param_bin` 加载含未量化层(`int8_scale_term=0`)的 ncnn2int8 部分量化模型时推理输出错误——同一模型的文本 `load_param` 加载结果正确[BUG]
Heap-buffer-overflow in Concat::forward (AVX and generic x86 kernel) with multi-scale YOLO export
SGEMM (im2col + GEMM) convolution path may occasionally output NaN due to uninitialized workspace memory reuse
Access violation 0xC0000005 during Vulkan GPU initialization on Windows with RTX 5060 + Intel Graphics
ARM fp16 arithmetic produces all-NaN output for a ViT-tiny graph / model (ncnn 20260526)
aarch64:padding 之后内核分发使用了过期的 elempack → `conv3x3s2_pack4_neon` 越界读(非确定性 NaN / SIGSEGV),触发输入为合法的 dims=2 Mat
YOLOv8 detection results on Mali-G720 Vulkan GPU (CPU results are correct)
feature plan
AMD CPU SDPA result error