Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c++文件编译报错 #2

Open
wizard0515 opened this issue May 13, 2023 · 2 comments
Open

c++文件编译报错 #2

wizard0515 opened this issue May 13, 2023 · 2 comments

Comments

@wizard0515
Copy link

作者您好!我的ort版本和您的好像不一样,里面没有getinputname取而代之的是GetInputNameAllocated,因此我对代码做了如下更改:
Ort::AllocatedStringPtr input_name_Ptr = ort_session->GetInputNameAllocated(i, allocator);
input_names.push_back(input_name_Ptr.get());
然后session的构造函数也发生了变化:
const ORTCHAR_T* model_path = "/data/LSTR/lstr_360x640.onnx";
ort_session = new Session(env, model_path, sessionOptions);
以上问题我推测都是版本变化造成的,更改后编译能通过,但是执行可执行文件的时候报错:
terminate called after throwing an instance of 'Ort::Exception'
what(): Invalid Feed Input Name:JPEG files (.jpeg;.jpg;*.jpe)
已放弃 (核心已转储)

我不知道错误的根源是什么,另外代码里面的log_space.bin文件具体用处是什么呢?真心请教一下,谢谢!

@husaixy
Copy link

husaixy commented Jun 27, 2023

我有相同的问题请问是否解决了

@23119841
Copy link

Invalid Feed Input Name:
microsoft/onnxruntime#14157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants