-
-
Notifications
You must be signed in to change notification settings - Fork 874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何导入本地的DocLayout-YOLO-DocStructBench-onnx模型而不通过huggingface导入 #300
Comments
什么方式使用?docker还是pip安装? |
pip安装 |
linux下的话保存的位置在~/.cache/huggingface |
是否支持windows系统呢,我尝试将doclayout-yolo-docStructbench_imgsz1024.onnx放入~/.cache/huggingface 以及~/.cache/huggingface/hub都会从huggingface中请求下载 |
可以试试在一台有公网的电脑上从 HF 加载模型,然后将 |
注意到 doclayout.py 中写到: pth = hf_hub_download(repo_id=repo_id, filename=filename, etag_timeout=1)
return OnnxModel(pth) 其中, 建议后续给 cli 添加一个参数,允许手动指定 onnx 模型路径。(如果没有有缘人愿意写得话,我有空了可以写) |
由于在内网测试,我从huggingface中下载了DocLayout-YOLO-DocStructBench-onnx模型,他应该放入哪个路径让程序可以直接读取本地模型,而不通过网络从huggingface中下载?
The text was updated successfully, but these errors were encountered: