hpc203 / m-lsd-onnxrun-cpp-py Goto Github PK
View Code? Open in Web Editor NEW使用ONNXRuntime部署面向轻量实时的M-LSD直线检测,包含C++和Python两个版本的程序
使用ONNXRuntime部署面向轻量实时的M-LSD直线检测,包含C++和Python两个版本的程序
冒昧的打扰:
用您给的onnx文件可以顺利的进行img的推导
然后用官方代码 https://github.com/lhwcv/mlsd_pytorch.git 用trt_converter.py 进行onnx的转化可顺利进行, 同时
onnx_model = onnx.load(out_file), onnx.checker.check_model(onnx_model)检查没有问题.
但是加载自己转化后的onnx文件,加载阶段出现问题如下:
self.input_name = self.onnx_session.get_inputs()[0].name
print(" input name is: ", self.input_name)
#input_name: input_image_with_alpha:0
#not good: pading0
self.output_names = [self.onnx_session.get_outputs()[i].name for i in range(3)]
print(" output name is: ", self.output_names)
# ['Identity', 'Identity_1', 'Identity_2']
#not good: list index out of range
我该如何修改,或者怎么得到您的帮助
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.