Comments (10)
设置环境变量ORT_LIB_LOCATION={对应系统的lib},可以看下github actions那里
MixTex-rs-GUI/.github/workflows/release.yml
Line 119 in 53e9f1a
我是静态链接的,没有用ort给的库
from mixtex-rs-gui.
你直接下载的微软的嘛?
from mixtex-rs-gui.
项目的从这里获取 https://github.com/MosRat/MixTex-rs-GUI/releases/tag/deps
来源https://github.com/RapidAI/OnnxruntimeBuilder/releases/tag/1.18.1
from mixtex-rs-gui.
不知道为什么我的出现下面错误:
今天我打算升级到最新的ort rc.5
,但是修改后突然报错了,现在回到rc.4
:
我的cargo.toml配置:
运行测试报错,你遇到过吗:
The given version [18] is not supported, only version 1 to 10 is supported in this build.
assertion failed: !api.is_null()
thread 'mixtex::tests::test_interface' panicked at C:\Users\jyj34\.cargo\git\checkouts\ort-675c4f2a84c4db27\04da381\src\lib.rs:214:25:
assertion failed: !api.is_null()
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library\std\src\panicking.rs:652
1: core::panicking::panic_fmt
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library\core\src\panicking.rs:72
2: core::panicking::panic
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library\core\src\panicking.rs:146
3: ort::api::closure$0
at C:\Users\jyj34\.cargo\git\checkouts\ort-675c4f2a84c4db27\04da381\src\lib.rs:214
4: std::sync::once_lock::impl$0::get_or_init::closure$0<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,ort::api::closure_env$0>
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\library\std\src\sync\once_lock.rs:269
5: std::sync::once_lock::impl$0::initialize::closure$0<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,std::sync::once_lock::impl$0::get_or_init::closure_env$0<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,ort::api::closure_env$0>,never$>
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\library\std\src\sync\once_lock.rs:476
6: std::sync::once::impl$2::call_once_force::closure$0<std::sync::once_lock::impl$0::initialize::closure_env$0<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,std::sync::once_lock::impl$0::get_or_init::closure_env$0<core::sync::atomic::AtomicPtr<ort_sys::OrtAp
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\library\std\src\sync\once.rs:208
7: std::sys::sync::once::queue::Once::call
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library\std\src\sys\sync\once\queue.rs:183
8: std::sync::once::Once::call_once_force<std::sync::once_lock::impl$0::initialize::closure_env$0<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,std::sync::once_lock::impl$0::get_or_init::closure_env$0<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,ort::api::
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\library\std\src\sync\once.rs:208
9: std::sync::once_lock::OnceLock<core::sync::atomic::AtomicPtr<ort_sys::OrtApi> >::initialize<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,std::sync::once_lock::impl$0::get_or_init::closure_env$0<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,ort::api::clo
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\library\std\src\sync\once_lock.rs:475
10: std::sync::once_lock::OnceLock<core::sync::atomic::AtomicPtr<ort_sys::OrtApi> >::get_or_try_init<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,std::sync::once_lock::impl$0::get_or_init::closure_env$0<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,ort::api
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\library\std\src\sync\once_lock.rs:357
11: std::sync::once_lock::OnceLock<core::sync::atomic::AtomicPtr<ort_sys::OrtApi> >::get_or_init<core::sync::atomic::AtomicPtr<ort_sys::OrtApi>,ort::api::closure_env$0>
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\library\std\src\sync\once_lock.rs:269
12: ort::api
at C:\Users\jyj34\.cargo\git\checkouts\ort-675c4f2a84c4db27\04da381\src\lib.rs:172
13: ort::environment::EnvironmentBuilder::commit
at C:\Users\jyj34\.cargo\git\checkouts\ort-675c4f2a84c4db27\04da381\src\lib.rs:262
14: pix2text::mixtex::MixTexOnnx::build<std::path::PathBuf,std::path::PathBuf,std::path::PathBuf,std::path::PathBuf>
at .\src\mixtex.rs:41
15: pix2text::mixtex::tests::test_interface
at .\src\mixtex.rs:338
16: pix2text::mixtex::tests::test_interface::closure$0
at .\src\mixtex.rs:329
17: core::ops::function::FnOnce::call_once<pix2text::mixtex::tests::test_interface::closure_env$0,tuple$<> >
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\library\core\src\ops\function.rs:250
18: core::ops::function::FnOnce::call_once
at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library\core\src\ops\function.rs:250
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
from mixtex-rs-gui.
我的依赖是这这样:
ort = { version = "2.0.0-rc.4",default-features = false, features = ["ndarray"] }
ndarray = { version = "0.15.6" }
然后你加载的onnx模型是什么?
from mixtex-rs-gui.
onnx 模型使用的与你的一样
from mixtex-rs-gui.
你的环境变量是怎么设的?RustRover每次测试都要手动设。我这边没问题,我依稀记得看过这个版本不对的问题是链接库版本的问题.
from mixtex-rs-gui.
嗷嗷,你这样设置的呀,我是在电脑系统变量里面,我明天像你这样测试一下,刚刚电脑关了,抱歉,你能把你设置这个环境变量发我一下嘛,我明天试一下
from mixtex-rs-gui.
就是那个静态库的位置
项目的从这里获取 https://github.com/MosRat/MixTex-rs-GUI/releases/tag/deps 来源https://github.com/RapidAI/OnnxruntimeBuilder/releases/tag/1.18.1
你下到哪就设置ORT_LIB_LOCATION={有lib文件的文件夹}。RustRover很奇怪,外面的环境变量似乎不认
from mixtex-rs-gui.
你说的这个问题我遇到过,在使用clion时,我连接wsl,但是无法使用wsl设置的环境变量,需要手动在clion中配置,不知道为什么。
from mixtex-rs-gui.
Related Issues (4)
- 支持公式之间互转方法
- 关于细节调整建议 HOT 2
- [FR] Support for dual monitors HOT 2
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 mixtex-rs-gui.