![ncnn](https://raw.githubusercontent.com/Tencent/ncnn/master/images/256-ncnn.png) # ncnn [![License](https://img.shields.io/badge/license-BSD_3_Clause-blue.svg?style=for-the-badge)](LICENSE.txt) [![Download Total Count](https://img.shields.io/github/downloads/Tencent/ncnn/total.svg?style=for-the-badge)](https://github.com/Tencent/ncnn/releases) [![codecov](https://img.shields.io/codecov/c/github/Tencent/ncnn/master?style=for-the-badge)](https://codecov.io/gh/Tencent/ncnn) ncnn is a high-performance neural network inference computing framework optimized for mobile platforms. ncnn is deeply considerate about deployment and uses on mobile phones from the beginning of design. ncnn does not have third party dependencies. It is cross-platform, and runs faster than all known open source frameworks on mobile phone cpu. Developers can easily deploy deep learning algorithm models to the mobile platform by using efficient ncnn implementation, create intelligent APPs, and bring the artificial intelligence to your fingertips. ncnn is currently being used in many Tencent applications, such as QQ, Qzone, WeChat, Pitu and so on. ncnn 是一个为手机端极致优化的高性能神经网络前向计算框架。 ncnn 从设计之初深刻考虑手机端的部署和使用。 无第三方依赖,跨平台,手机端 cpu 的速度快于目前所有已知的开源框架。 基于 ncnn,开发者能够将深度学习算法轻松移植到手机端高效执行, 开发出人工智能 APP,将 AI 带到你的指尖。 ncnn 目前已在腾讯多款应用中使用,如:QQ,Qzone,微信,天天 P 图等。 ---
技术交流 QQ 群 637093648 (超多大佬) 答案:卷卷卷卷卷(已满) |
Telegram Group
|
Discord Channel
|
Pocky QQ 群(MLIR YES!) 677104663 (超多大佬) 答案:multi-level intermediate representation |
**[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 | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-full-source.zip) | ||
- [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 | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-android-vulkan.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-android-vulkan-shared.zip) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Aandroid-armv7-gpu) | |
Android cpuonly | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-android.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-android-shared.zip) | ||
- [Build for iOS on macOS with xcode](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-ios-on-macos-with-xcode) | |||
iOS | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ios-vulkan.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ios-vulkan-bitcode.zip) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Aios-arm64-gpu) | |
iOS cpuonly | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ios.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ios-bitcode.zip) | ||
iOS-Simulator | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ios-simulator-vulkan.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ios-simulator-vulkan-bitcode.zip) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Aios-simulator-gpu) | |
iOS-Simulator cpuonly | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ios-simulator.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ios-simulator-bitcode.zip) | ||
- [Build for macOS](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-macos) | |||
macOS | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-macos-vulkan.zip) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Amacos-arm64-gpu) | |
macOS cpuonly | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-macos.zip) | ||
Mac-Catalyst | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-mac-catalyst-vulkan.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-mac-catalyst-vulkan-bitcode.zip) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Amac-catalyst-arm64-gpu) | |
Mac-Catalyst cpuonly | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-mac-catalyst.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-mac-catalyst-bitcode.zip) | ||
watchOS | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-watchos.zip) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Awatchos-cpu) | |
watchOS-Simulator | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-watchos-simulator.zip) | ||
tvOS | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-tvos.zip) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Atvos-cpu) | |
tvOS-Simulator | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-tvos-simulator.zip) | ||
Apple xcframework | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-apple-vulkan.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-apple-vulkan-bitcode.zip) | ||
Apple xcframework cpuonly | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-apple.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-apple-bitcode.zip) | ||
- [Build for Linux / NVIDIA Jetson / Raspberry Pi3, Pi4 / POWER](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-linux) | |||
Ubuntu 20.04 | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ubuntu-2004.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ubuntu-2004-shared.zip) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Alinux-x64-gpu-gcc) | |
Ubuntu 22.04 | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ubuntu-2204.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-ubuntu-2204-shared.zip) | ||
- [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 | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-windows-vs2015.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-windows-vs2015-shared.zip) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Awindows-x64-gpu) | |
VS2017 | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-windows-vs2017.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-windows-vs2017-shared.zip) | ||
VS2019 | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-windows-vs2019.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-windows-vs2019-shared.zip) | ||
VS2022 | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-windows-vs2022.zip) [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-windows-vs2022-shared.zip) | ||
- [Build for WebAssembly](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-webassembly) | |||
WebAssembly | [](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20240102-webassembly.zip) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Aweb-assembly) | |
- [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) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Alinux-arm-cpu-gcc) | ||
Linux (aarch64) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Alinux-aarch64-cpu-gcc) | ||
Linux (mips) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Alinux-mips-cpu-gcc) | ||
Linux (mips64) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Alinux-mips64-cpu-gcc) | ||
Linux (ppc64) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Alinux-ppc64-cpu-gcc) | ||
Linux (riscv64) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Alinux-riscv64-cpu-gcc) | ||
Linux (loongarch64) | [](https://github.com/Tencent/ncnn/actions?query=workflow%3Alinux-loongarch64-cpu-gcc) |