PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
Apache License 2.0
40.35k stars 7.47k forks source link

老师,请问RE任务训练好模型,能不能模型导出为推理模型呢?在线等,谢谢 #8051

Closed 1998wy123 closed 1 year ago

1998wy123 commented 1 year ago

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

an1018 commented 1 year ago

RE动转静还在适配中,后续可以关注更新~

1998wy123 commented 1 year ago

老师,请教您个问题,RE不能将训练模型转化为推理模型的话,我在用ser+re任务时,我可以用ser的推理模型加re的训练模型进行批量图片推理吗? 在线等,谢谢  

王云 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月25日(星期二) 上午9:48 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [PaddlePaddle/PaddleOCR] 老师,请问RE任务训练好模型,能不能模型导出为推理模型呢?在线等,谢谢 (Issue #8051)

RE动转静还是适配中,后续可以关注更新~

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

1998wy123 commented 1 year ago

老师,请教您个问题,RE不能将训练模型转化为推理模型的话,我在用ser+re任务时,我可以用ser的推理模型加re的训练模型进行批量图片推理吗?

王云 @.***

 

------------------ 原始邮件 ------------------ 发件人: "PaddlePaddle/PaddleOCR" @.>; 发送时间: 2022年10月25日(星期二) 上午9:48 @.>; @.**@.>; 主题: Re: [PaddlePaddle/PaddleOCR] 老师,请问RE任务训练好模型,能不能模型导出为推理模型呢?在线等,谢谢 (Issue #8051)

RE动转静还是适配中,后续可以关注更新~

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

sybest1259 commented 1 year ago

麻烦咨询一下,我训练re模型,直接报错了 环境:paddle-gpu2.3.2 paddlenlp2.3.0 运行命令: python3 -m paddle.distributed.launch --gpus '0,1,2,3' tools/train.py -c configs/kie/vi_layoutxlm/re_vi_layoutxlm_xfund_zh.yml 错误:'paddle.fluid.core_avx.ops' has no attribute 'c broadcast' 是版本问题吗

1998wy123 commented 1 year ago

可能你电脑没有GPU只有CPU  

王云 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月26日(星期三) 下午5:03 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [PaddlePaddle/PaddleOCR] 老师,请问RE任务训练好模型,能不能模型导出为推理模型呢?在线等,谢谢 (Issue #8051)

麻烦咨询一下,我训练re模型,直接报错了paddle-gpu2.3.2

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

sybest1259 commented 1 year ago

ser模型可以训练导出inference,re训练就报错

1998wy123 commented 1 year ago

我的re训练也报错过,我看公开数据集XFUND是两种任务都做的,我也准备去问问,你的是linking错误吗?还是显存溢出了  

王云 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月26日(星期三) 下午5:06 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [PaddlePaddle/PaddleOCR] 老师,请问RE任务训练好模型,能不能模型导出为推理模型呢?在线等,谢谢 (Issue #8051)

ser模型可以训练导出inference,re训练就报错

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

sybest1259 commented 1 year ago

应该是paddle版本问题,我用的paddlepaddle-gpu2.3.2,你用的什么版本? 之前导出ser模型用的低版本paddle也报错

1998wy123 commented 1 year ago

你用的数据集是自己的吗,还是公开的,我的是paddlepaddle的CPU版本  

王云 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月26日(星期三) 下午5:10 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [PaddlePaddle/PaddleOCR] 老师,请问RE任务训练好模型,能不能模型导出为推理模型呢?在线等,谢谢 (Issue #8051)

应该是paddle版本问题,我用的paddlepaddle-gpu2.3.2,你用的什么版本?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

sybest1259 commented 1 year ago

版本号是多少?re任务可以训练吗? 我的数据是公开的发票数据集

1998wy123 commented 1 year ago

公开数据集我用服务器可训练 

王云 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月26日(星期三) 下午5:13 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [PaddlePaddle/PaddleOCR] 老师,请问RE任务训练好模型,能不能模型导出为推理模型呢?在线等,谢谢 (Issue #8051)

版本号是多少?re任务可以训练吗? 我的数据是公开的发票数据集

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

sybest1259 commented 1 year ago

paddlepaddle版本号麻烦告一下

1998wy123 commented 1 year ago

 

王云 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月26日(星期三) 下午5:16 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [PaddlePaddle/PaddleOCR] 老师,请问RE任务训练好模型,能不能模型导出为推理模型呢?在线等,谢谢 (Issue #8051)

paddlepaddle版本号麻烦告一下

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

sybest1259 commented 1 year ago

你发了吗?没看到

1998wy123 commented 1 year ago

2.3.2  

王云 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月26日(星期三) 下午5:25 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [PaddlePaddle/PaddleOCR] 老师,请问RE任务训练好模型,能不能模型导出为推理模型呢?在线等,谢谢 (Issue #8051)

你发了吗?没看到

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

sybest1259 commented 1 year ago

我也是2.3.2,难道是gpu版本有问题?

WenmuZhou commented 1 year ago

re导出可以参考这个https://github.com/PaddlePaddle/PaddleOCR/blob/release%2F2.6/doc/doc_ch/kie.md#4-%E6%A8%A1%E5%9E%8B%E5%AF%BC%E5%87%BA%E4%B8%8E%E9%A2%84%E6%B5%8B