Comments (4)
需要在可执行文件目录下,export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
from lite.ai.toolkit.
重新编译一下库,编译案例的时候输出ite.ai.toolkit_LIBS_DIRS:
cmake_minimum_required(VERSION 3.10)
project(lite_yolov5)
set(CMAKE_CXX_STANDARD 17)
set(lite.ai.toolkit_DIR YOUR-PATH-TO/lite.ai.toolkit/build/install)
find_package(lite.ai.toolkit REQUIRED PATHS ${lite.ai.toolkit_DIR})
if (lite.ai.toolkit_Found)
message(STATUS "lite.ai.toolkit_INCLUDE_DIRS: ${lite.ai.toolkit_INCLUDE_DIRS}")
message(STATUS " lite.ai.toolkit_LIBS: ${lite.ai.toolkit_LIBS}")
message(STATUS " lite.ai.toolkit_LIBS_DIRS: ${lite.ai.toolkit_LIBS_DIRS}")
endif()
add_executable(lite_yolov5 test_lite_yolov5.cpp)
target_link_libraries(lite_yolov5 ${lite.ai.toolkit_LIBS})
然后把相关的路径export一下即可
from lite.ai.toolkit.
感谢,模型已经成功加载并计算完成。提几个点:
- 模型和图片地址根据需要修改
std::string onnx_path = "../../../../examples/hub/onnx/cv/yolov5s.onnx";
// ...
- 项目对模型输入做了规范,下载项目给出的模型可以完成测试,其他资源处下载的模型可以使用Python对onnx模型文件的输入格式进行修改
terminate called after throwing an instance of 'Ort::Exception'
what(): Unexpected input data type. Actual: (tensor(float)) , expected: (tensor(float16))
- 该项目支持GPU计算吗?
from lite.ai.toolkit.
GPU后续版本会继续支持。也可以通过修改依赖库和lite.ai.toolkit的源码加支持,很好改。
from lite.ai.toolkit.
Related Issues (20)
- MacOS 下开启 Metal 会崩溃 HOT 4
- MacOS 下开启 Metal 应该使用什么方案 HOT 3
- 求兼容macOS m1 HOT 4
- RESOURCES HOT 1
- Compile on M1 Chip HOT 5
- Example4: Face Recognition using ArcFace. 怎么加速推理时间? HOT 1
- rvm模型用mnn推理结果有误啊 HOT 1
- batch glint inference HOT 2
- MacOS下启用Metal加速后,效果较差,需要如何改进呢? HOT 1
- 加入mrnet的mnn部署 HOT 1
- Docker image invalid tar header HOT 1
- 你好,有OCR的模型部署吗? HOT 2
- [BUG][Tracker] can not found any test model in examples/hub directory HOT 1
- Windows 运行 RVM 使用 rvm_mobilenetv3_fp16.onnx 崩溃
- 请问可以支持DNN吗?
- Windows MNN 初始化 RobustVideoMatting 失败
- 如何配置环境调试代码,进行学习呢 HOT 2
- mnn_rvm.cpp 怎么使用动态分辨率的输入 HOT 1
- [0.1.1]编写自定义模型的C函数接口extern "C" __declspec(dllexport)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lite.ai.toolkit.