当前位置:网站首页>ncnn 编译与使用 pnnx 编译与使用
ncnn 编译与使用 pnnx 编译与使用
2022-07-16 07:38:00 【嵌入Qt每一天】
ncnn 编译与使用 pnnx 编译与使用
ncnn
1.ncnn的官网:https://github.com/Tencent/ncnn
2.clone到本地:git clone [email protected]:Tencent/ncnn.git
3.visual studio打开:右键全部生成
pnnx
1.位置:pnnx位于ncnn的 toos/pnnx
2.配置 libtorch :
使用 CMAKE_PREFIX_PATH 配置:
首先找到 TorchConfig.cmake 的目录(可用everything工具),然后list(append CMAKE_PREFIX_PATH …)
if(CMAKE_BUILD_TYPE AND (CMAKE_BUILD_TYPE STREQUAL "Debug"))
list(APPEND CMAKE_PREFIX_PATH "D:/lib/libtorch-win-shared-with-deps-debug-1.9.0+cu111/libtorch/share/cmake")
elseif(CMAKE_BUILD_TYPE AND (CMAKE_BUILD_TYPE STREQUAL "Release"))
list(APPEND CMAKE_PREFIX_PATH "D:/lib/libtorch-win-shared-with-deps-1.9.0+cu111/libtorch/share/cmake")
endif()
3.visual studio打开:右键全部生成
边栏推荐
- Andersen global enters Rwanda
- zabbix详细介绍
- 全链路压测 :测试要做的准备工作
- 史上最全mysql!拼命整理
- Kingbasees v8r6 cluster backup recovery case - the backup database performs physical backup as a repo host
- Enable sandbox function and use in win10
- Processing TCP and UDP services simultaneously with i/o multiplexing
- Iowait understanding
- Vs2019 inline assembly development
- 1111111111111
猜你喜欢

A lightweight tracking method based on unique identifier of timestamp
Win10 timed running program

VS2019 内联汇编开发

Vulnhub-dc8 learning notes

Vs2019 inline assembly development

C语言《通讯录》详解

Surmonter les défis de la transformation numérique en élaborant une vision

The most complete MySQL in history! Desperately tidy up

数据的存储【C语言】

Comprehensive evaluation method
随机推荐
Do you know the shell foundation often asked in interviews?
Chapter 3: runtime data area - independent space
Know Baidu AI development platform
基于时间戳的唯一标识符的轻量级跟踪方法
Talking about brain computer interface
RGB图像上的密文--违规数据隐藏
metaRTC5.0实现webrtc版IPC
JS Object. keys()
基于poll实现聊天室
.net发布项目到服务器,文件形式
Lscale theme emlog background management panel theme source code
Airiot low code development platform, 10 minutes to build the Internet of things system
cas(Compare-and-Swap)
全链路压测 :测试要做的准备工作
笔记-如何在稀烂的数据中做深度学习
Kingbasees v8r6 cluster backup recovery case - the backup database performs physical backup as a repo host
iowait 理解
【LeetCode】10. Maximum subarray · maximum subarray sum
Compilation optimization from the release of Xiaomi 10
Codeforces Round #806 (Div. 4)