macOS
brew install ncnnlocal Homebrew formula metadata
安装
brew install ncnnlocal Homebrew formula metadata
sudo dnf install ncnnFedora Rawhide package metadata · ncnn · 来源: dl.fedoraproject.org
nix profile install nixpkgs#ncnnnixpkgs package indexes · pkgs/by-name/nc/ncnn/package.nix · 来源: api.github.com
sudo pacman -S ncnnArch Linux sync databases · ncnn · 来源: geo.mirror.pkgbuild.com
sudo zypper install ncnnopenSUSE Tumbleweed package metadata · ncnn · 来源: download.opensuse.org
概览
High-performance neural network inference framework
历史
ncnn is Tencent's open-source neural-network inference runtime for mobile, embedded, desktop, browser, and edge deployment. Its niche is small, dependency-light inference: the upstream README emphasizes no third-party runtime dependencies, CPU and Vulkan GPU backends, explicit low-memory allocator design, and conversion tools such as pnnx for PyTorch and ONNX workflows.
Tencent presentations describe the ncnn project as dating from 2017, with open collaboration and Vulkan acceleration as central design points. That timing put it in the wave of mobile inference runtimes that appeared after deep-learning deployment moved from server GPUs into phones and edge devices.
Upstream states that ncnn is used in Tencent applications including QQ, Qzone, WeChat, and Pitu. Outside Tencent, its adoption pattern is typical for low-level ML infrastructure: package-manager availability, examples for object detection and vision models, and use by developers who want a C++ runtime without TensorFlow Lite or ONNX Runtime-sized baggage.
Package users usually install ncnn for the converter and optimizer executables as much as for the library. A common flow is export from PyTorch through pnnx, produce .param and .bin model files, run optimization or int8 tooling, and embed the resulting model in a C++ or mobile application using ncnn::Net.
For package maintainers, ncnn is interesting because it is a fast-moving C++/Vulkan project that exposes both libraries and many small CLI tools. It is also a useful example of a Homebrew formula where the command-line surface is mostly build/deployment tooling around a library rather than one end-user command.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
caffe2ncnn | cli | 全局可执行文件 | |
darknet2ncnn | cli | 全局可执行文件 | |
mxnet2ncnn | cli | 全局可执行文件 | |
ncnn2int8 | cli | 全局可执行文件 | |
ncnn2mem | cli | 全局可执行文件 | |
ncnn2table | cli | 全局可执行文件 | |
ncnnmerge | cli | 全局可执行文件 | |
ncnnoptimize | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/Tencent/ncnn
安装元数据
| 软件包键 | brew:ncnn |
|---|---|
| 版本 | 20260526 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/ncnn |
| 主页 | https://github.com/Tencent/ncnn |
| 仓库 | https://github.com/Tencent/ncnn |
| 上游文档 | https://github.com/Tencent/ncnn |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://github.com/Tencent/ncnn/archive/refs/tags/20260526.tar.gz |
| 最后更新 | 2026-06-25T13:37:56+02:00 |
| Pulse | updated |
| 依赖 | abseil, glslang, libomp, molten-vk, protobuf, spirv-tools |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ncnn |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
ncnn
nix profile install nixpkgs#ncnnncnn 20250916-3.fc45
A high-performance neural network inference framework
https://github.com/Tencent/ncnn
sudo dnf install ncnnncnn-devel 20250916-3.fc45
Development files for ncnn
https://github.com/Tencent/ncnn
sudo dnf install ncnn-develncnn 20260113-6
High-performance neural network inference framework optimized for the mobile platform
https://github.com/Tencent/ncnn
sudo pacman -S ncnnlibncnn1 20250916-1.8
NCNN library
https://github.com/Tencent/ncnn
sudo zypper install libncnn1ncnn 20250916-1.8
A high-performance neural network inference framework
https://github.com/Tencent/ncnn
sudo zypper install ncnnncnn-devel 20250916-1.8
Development tools for ncnn
https://github.com/Tencent/ncnn
sudo zypper install ncnn-devel来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.