Results 5 comments of chouife

看到作者刚刚回复了,我想顺便问下为什么config里面的eos_token_id和tokenizer中的eos_token_id不一致了?

你好,可以说一下是修改了哪一部分代码吗?我是用的别人仓库的代码,出现的问题和你的类似,麻烦了!

感谢你的回复!没太理解你的意思,能否具体一点了?我确实是安装的onnxruntime-gpu,所用的版本也是requirements.txt中对应的版本。Thank you for your reply! I didn't quite understand your meaning, could you be more specific? I did indeed install onnxruntime gpu, and the version used is also the corresponding...

目前只是修改了ocr.py和recognizer.py中的如图所示的代码,将"False and"删除以启用GPU推理,并在对应的providers中添加了"CPUExecutionProvider"。模型文件是从huggingface中下载的,其余代码并未改动,测试时使用t_ocr.py和t_recognizer.py,仅修改待解析的文件路径。 At present, only the code shown in the figure has been modified in ocr. py and recognizer. py, removing "False and" to enable GPU inference, and adding "CPUExecutionProvider"...

感谢回复!我看到微信群里有人和我是一样的情况,你的意思是你们本地测试是正常的吗? Thank you for your reply! I saw someone in the WeChat group in the same situation as me. Do you mean that your local testing is normal?