请问官网下载的推理模型压缩包没有config.json文件是什么情况呢? #16652
Unanswered
asdasfasd133
asked this question in
Q&A
Replies: 3 comments 4 replies
-
您好,有具体的复现命令吗?模型推理的话包含 inference.yml、inference.json、inference.pdiparams 就可以了,找不到 model_name 可以看下inference.yml中是否存在model_name 字段, |
Beta Was this translation helpful? Give feedback.
0 replies
-
今天下午我试了一下,可以了,但是有个问题,structurev3可以自定义模型的所在路径
吗?并且我在运行官网的案例脚本启动时发现,服务运行时下载了很多缓存的模型文件,这些缓存模型是否都是必须的呢?
…---原始邮件---
发件人: ***@***.***>
发送时间: 2025年10月15日(周三) 晚上7:18
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [PaddlePaddle/PaddleOCR] 请问官网下载的推理模型压缩包没有config.json文件是什么情况呢? (Discussion #16652)
您好,有具体的复现命令吗?模型推理的话包含 inference.yml、inference.json、inference.pdiparams 就可以了,找不到 model_name 可以看下inference.yml中是否存在model_name 字段,
image.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
-
好的,非常感谢🙏🏻不过缓存模型必须要有,但是在内网无法访问外网的服务器中,只能通过下载模型压缩包的方式上传服务器中,可以完全使用下载的模型么?
…---原始邮件---
发件人: ***@***.***>
发送时间: 2025年10月16日(周四) 中午11:47
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [PaddlePaddle/PaddleOCR] 请问官网下载的推理模型压缩包没有config.json文件是什么情况呢? (Discussion #16652)
可以的。可以在from paddleocr import PaddleOCR之前添加下面的命令来修改paddlex模型下载的路径
import os os.environ["PADDLE_PDX_CACHE_HOME"] = r"XXX"
缓存模型是必须的,这样下次运行就可以直接从本地加载而不需要重新下载了
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
paddle官网在PP-StructureV3界面下载的推理模型压缩包,只有inference.yml、inference.json、inference.pdiparams文件。Python脚本在实例化时不指定参数自动下载模型缓存,模型列表里有config.json文件,而官网下载的推理模型压缩包中没有,导致使用本地模型时提示找不到model_name
Beta Was this translation helpful? Give feedback.
All reactions