Skip to content
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

无法使用huggingface down下来的bin模型做预测 #108

Open
Lily-gittee opened this issue Jul 31, 2024 · 9 comments
Open

无法使用huggingface down下来的bin模型做预测 #108

Lily-gittee opened this issue Jul 31, 2024 · 9 comments

Comments

@Lily-gittee
Copy link

Lily-gittee commented Jul 31, 2024

当我参考readme.md文件中的指示使用命令python demo/image_demo.py .//images//xixi_33.tif configs/rsprompter/samseg-maskrcnn-whu.py --weights ./checkpoint\sam-vit-base/pytorch_model.bin --out-dir ./output
控制台报错:OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like huggingface/sam_vit_base is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
应该是找不到权重文件所在位置,于是自动连接huggingface下载,但我无法科学上网,所以总失败。请问有什么办法可以解决?或者我的预测命令是否正确?
谢谢各位!!!

@Lily-gittee
Copy link
Author

已解决,因为下载的文件是-横杠,而代码中是_下划杠,所以找不到,闹了个乌龙

@Berlin000000
Copy link

请问你的checkpoints是在哪里下载的呀 configs/rsprompter/下所有的模型都可以使用这个吗

@cj534-art
Copy link

运行出现这个错误要如何纠正Incorrect path_or_model_id: 'work_dirs/sam_cache/sam_vit_base'. Please provide either the path to a local folder or the repo_id of a model on the Hub.

@cj534-art
Copy link

请问你的checkpoints是在哪里下载的呀 configs/rsprompter/下所有的模型都可以使用这个吗

在下面几个常见问题里面有please use the [download script]这句话

@Lily-gittee
Copy link
Author

Lily-gittee commented Aug 19, 2024 via email

@Lily-gittee
Copy link
Author

Lily-gittee commented Aug 19, 2024 via email

@cj534-art
Copy link

您好可以问一下得到结果中vis文件中的图片为什么和原图一样(并没有颜色)(似乎没有完成实例分割)

@ucasyjz
Copy link

ucasyjz commented Oct 14, 2024

同样得到结果中vis文件中的图片和原图一样,并没有颜色,没有完成实例分割

@ucasyjz
Copy link

ucasyjz commented Oct 14, 2024

已解决,因为下载的文件是-横杠,而代码中是_下划杠,所以找不到,闹了个乌龙

有遇到出不来结果的情况吗,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants