-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Openvino Chinese Path and Interface Support #24520
Comments
openvino/src/inference/include/openvino/runtime/core.hpp Lines 101 to 111 in 6950460
or directly to compile model w/o reading it first openvino/src/inference/include/openvino/runtime/core.hpp Lines 310 to 328 in 6950460
|
@laogonggong847 Thank you for reaching the OpenVINO! do you see the error like this? |
Hello @ilya-lavrenov Yes, about the interface you're talking about, I've noticed that before.
Passing Thank you very much for your answers and I look forward to speaking with you further! |
Hello @andrei-kochin |
This API uses xml content and bin data as its input arguments, it should can meet your requirement - parse out the xml and bin from the new format file and pass to ov::Model directly? Or correct me if I misunderstood your requirement. |
Thank you very much for your professional and patient reply, if this "const std::string& model" contains Chinese characters, what should be done? The main thing is that when I include Chinese paths in python, I get the error I mentioned before. |
Here |
Is it reproduced in Linux also? |
In fact I am having this problem when using python for model conversion in windows, because the saved path contains Chinese. But I haven't tested it in linux, so I can't be sure if the problem exists in linux as well! Thank you for your reply, looking forward to your help, thank you very much!
|
@riverlijunjie Please ignore the unrelated error as I had only faulty model for testing
ref: CVS-141444 |
@laogonggong847, it seems path with Chinese character encoding in python on windows failed to decode in UTF-8 Unicode: https://ofstack.com/python/20064/python-solves-the-problem-of-chinese-character-encoding:-unicode-decode-error.html You may try out following quick workaround:
|
Request Description
Thanks for the great convenience and progress brought by openvino, in the future I hope openvino can solve two new problems:
1: Using openvino in python doesn't seem to solve the problem of paths containing Chinese characters. In fact I have solved the problem of including Chinese paths in C++ with openvino. But when using openvino in python, I haven't come up with a good way to solve the Chinese characters caused.
2: On another note, it seems to me that the current openvino interface for reading models is still not very flexible. Taking onnx as an example, I can read onnx model into memory and then pass the value from memory directly to "Ort::Session" for initialization. But when I look at the interface, it seems that openvino doesn't support me to pass both "xml" and "bin", which are processed and stored in memory, to the "ov::Core". " for initialization. Opening up or overloading similar interfaces would broaden the scenarios for using openvino.
Thank you very much for the great contribution made by openvino, for problem 1 do not know in addition to recompile whether there is a better way to solve the Chinese path error, very much look forward to your guidance, thank you very much!
Feature Use Case
No response
Issue submission checklist
CVS-141444
The text was updated successfully, but these errors were encountered: