当前位置:网站首页>Ncnn reasoning framework installation; Onnx to ncnn
Ncnn reasoning framework installation; Onnx to ncnn
2022-07-27 15:58:00 【loong_ XL】
Reference resources :
https://zhuanlan.zhihu.com/p/394762128
1、 install (ubuntu test 、 install opencv Corresponding package libopencv-dev)
Reference resources :https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-linux
## Pre associated package installation ( If there are errors in the installation process , Sure sudo apt-get update Then run )
sudo apt install build-essential git cmake libprotobuf-dev protobuf-compiler libvulkan-dev vulkan-utils libopencv-dev
## download git project
git clone https://github.com/Tencent/ncnn.git
## compile
cd ncnn
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release .. ### This step runs if OpenCV Not well , Some cases will not be used later , The index needs to be reinstalled OpenCV Come back later cmake compile , Reference resources https://blog.csdn.net/sinat_29957455/article/details/108830085
make -j32
test ( This if the front OpenCV This case will not run and report an error if it is not installed and compiled )
cd ../examples
../build/examples/squeezenet ../images/256-ncnn.png

Performance testing
cd ../benchmark
## The fourth parameter is GPU deive index
## If you want to use CPU, Set the fifth parameter to -1
../build/benchmark/benchncnn 10 32 0 0

2、onnx turn ncnn( Use the compiled conversion tool )
Get into ncnn/build/tools/onnx Next
./onnx2ncnn /data/loong/triton_test/model_repository/clip_onnx/1/model.onnx model.param model.bin

边栏推荐
- Voice live broadcast system -- a necessary means to improve the security of cloud storage
- C语言:动态内存函数
- Extended log4j supports the automatic deletion of log files according to time division and expired files
- 传美国政府将向部分美企发放对华为销售许可证!
- Learn parquet file format
- Binary Insertion Sort
- 聊聊ThreadLocal
- [sword finger offer] interview question 52: the first common node of two linked lists - stack, hash table, double pointer
- 一款功能强大的Web漏洞扫描和验证工具(Vulmap)
- [sword finger offer] interview question 51: reverse pairs in the array - merge sort
猜你喜欢
![[sword finger offer] interview question 54: the k-largest node of the binary search tree](/img/13/7574af86926a228811503904464f3f.png)
[sword finger offer] interview question 54: the k-largest node of the binary search tree

网络原理(2)——网络开发

Causes and solutions of deadlock in threads

C语言:函数栈帧

语音直播系统——提升云存储安全性的必要手段

leetcode234题-简单方法判断回文链表

Using Lombok results in the absence of parent class attributes in the printed toString

C language: string function and memory function

Spark troubleshooting finishing

Division of entity classes (VO, do, dto)
随机推荐
busybox login: can't execute '/bin/bash': No such file or directory 解决方法
直接插入排序
借5G东风,联发科欲再战高端市场?
Implement custom spark optimization rules
接连取消安富利/文晔/世平代理权,TI到底打的什么算盘?
C语言实现字节流与十六进制字符串的相互转换
初识MySQL数据库
文字批量替换功能
C语言:动态内存函数
Interview focus - TCP protocol of transport layer
Catalog component design and custom extended catalog implementation in spark3
[系统编程] 进程,线程问题总结
Go language slow start - package
JS uses for in and for of to simplify ordinary for loops
The method of exchanging two numbers in C language
Binary Insertion Sort
DRF学习笔记(一):数据序列化
Sword finger offer 51. reverse pairs in the array
go语言慢速入门——go运算符
UDP 的报文结构和注意事项