Comments (3)
可以使用optimum-cli进行转换
1、pip install optimum[exporters]
2、其他环境版本:pytorch=2.0.0 onnx=1.14.1
3、转换命令:optimum-cli export onnx --model weights/weights/ --task image-to-text --opset 18 onnx_test/
其中--model weights/weights/
为模型路径,--opset 18
可选,onnx_test/
为保存路径
from trocr-chinese.
您好,我执行第一个作者的命令可以转换成功,但是在测试的时候会提示 onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid Feed Input Name:attention_mask
采用optimum-cli转换的话,是这个问题 UnboundLocalError: local variable 'all_files' referenced before assignment
from trocr-chinese.
这个问题我没遇到过,哈哈。你可以更换一下torch或者opset的版本试一下。
from trocr-chinese.
Related Issues (20)
- 您好,请教一下如果一个文本行里面既有普通文本也有公式的话怎么识别呢 HOT 2
- 交个朋友? HOT 1
- 使用自定义vocab.txt HOT 2
- 关于印章识别 HOT 3
- How to generate the our own pretrained weights?
- 请问预训练模型使用的数据 HOT 3
- ICDAR2023端到端印章名称识别 HOT 1
- 多行文字识别问题
- Prompt Learning相关问题
- 修改processor后重新训练
- 打印文本识别 HOT 1
- Tensorrt部署 HOT 1
- RuntimeError: CUDA error: device-side assert triggered! Solve!!!
- 预训练
- 您好,请教一下您给的数据集的实例的问题 HOT 1
- 印章文字识别模型什么时候开放下载 HOT 2
- 长文本中相同的文字识别错误,但是切割后都可以识别对 HOT 1
- 大佬们谁有表格数据集?
- 印章数据集百度网盘下载链接失效
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 trocr-chinese.