-
Notifications
You must be signed in to change notification settings - Fork 206
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
Internet problem with downloading Models/网络问题无法使用groundingDINO,下载本地模型后依然无法使用 #138
Comments
huggingface被墙了,你终端没办法下载Bert的tokenizer 终端代理有它自己的配法 |
那自己手动下载的两个模型文件要怎么样才能让他用上呢,直接塞到插件的model里他好像没检测到,还是会去抱脸继续下载 |
位置放错了可能 |
我放的位置是sd-webui-aki-v4.2\extensions\sd-webui-segment-anything\models\grounding-dino,应该是和他说的位置一样吧,或是说除了两个py和两个pth还需要其他文件吗 |
你下载的groundingdino模型并不是bert的tokenizer,tokenizer是另外的东西,是用来识别你文字的东西。 这个tokenizer目前只能通过终端自动下载,你需要配置终端代理,即http_proxy和https_proxy。因为huggingface代码库诡异的下载逻辑,我尚不知道如何直接下载然后放到某个文件夹。可能会在下下一个版本再尝试解决这个问题。 |
感谢大佬指路,目前问题已经解决,确实就是终端代理不行。解决方法是:
插件效果很棒,尝试识别人头和衣服之类的都非常不错,衷心感谢大佬的制作。 |
Have solved problem, the error is caused by terminal proxy.
|
Note to English speakers: the above method only works for people who
This issue will be closed once I find a way to completely bypass downloading huggingface material from terminal. |
那完蛋了 我用的国内云服务器,是墙不出来的。它一定要连到huggingface下载吗,我把上面这位成功的groundingdino文件夹复制过来用行不行 |
@openwaterer 有的云服务器提供学术加速服务,例如autodl,建议优先使用提供学术加速服务的云服务器。他会把bert下载到你不知道的位置,复制他的文件夹无法解决问题。 |
老哥 那我准备整个海外服务器,安装好后整个服务器文件镜像回国内服务器,这样可行吗。它总不会甚至都不在WebUI文件夹里面吧 |
@openwaterer 极有可能不在webui文件夹,它会在你的HF_HOME这个环境变量指向的文件夹里,如果HF_HOME为空,就会下载到~/.cache/hub (或者是类似的地方) |
好吧那我试试镜像整个服务器回来 感谢 |
没用整合包的怎么解决啊 |
你可以参考这个链接里的终端代理设置,里面有提及如何配置cmd,git和powershell的终端代理:https://sleepyocean.github.io/pages/da27da/ |
现在遇到和你一样的问题了,直接复制文件进去没用,云服务器又不能翻墙,请问下这个问题解决了吗? |
复制过来是可以用的, models--bert-base-uncased文件夹放在~/.cache/huggingface/hub下 |
I have solved this problem. |
我更惨,用的是秋叶4.4的,setment anything装了,groundingdino的pth下载了,也放到\models\grounding-dino\下了,然后那个huggingface的文件也自动下好了在\sd-webui-aki-v4.4.cache\sdwebuilauncher\hfmirror\blob\ 里,结果一点预览,就直接爆错了。 Using local groundingdino. During handling of the above exception, another exception occurred: 。。。。。。 from a TF 2.0 checkpoint, please set from_tf=True. |
@Fatal-Eror 十分感谢大佬,相同的问题按照大佬的操作顺利解决了!!! |
Done. However, GroundingDINO installment has failed. Your process automatically fall back to local groundingdino. See your terminal for more detail and permanently switch to local groundingdino on Settings/Segment Anything or submit an issue to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues. |
huggingface network connect problem in cloud server can refer to this pr : IDEA-Research/Grounded-Segment-Anything#517 |
我使用的是windows的秋叶整合包v4.2
我之前做的操作:
1.根据这个视频内容,https://www.bilibili.com/video/BV1Vh411F7Zn/?spm_id_from=333.337.search-card.all.click&vd_source=5fdf8441f38454739cb347f940e766c2 ,先是尝试了不勾选bypass c++ problem的配置,配置完成后点击generate bounding box,会显示time out或者远程主机关闭了链接之类的问题, 在https://huggingface.co/ShilongLiu/GroundingDINO/tree/main 下载两个模型并放置在models\grounding-dino后仍然还是提示网络问题的报错。我的网络也确实可以正常访问抱脸和github。
2.尝试勾选bypass c++problem,并且留了两个模型在文件夹内,点击generate仍然还是会显示同样的报错信息。偶尔有时不报错并开始下载,但下载速度非常慢只有几十k。
目前不太清楚是为什么连接有问题,以及想问下为什么没有直接使用我手动下载的模型开始生成。
I have tried to use this extention with no ticking bypass c++ problem and the ticking one, but i met some problem with downloading the GroundingDINO models from huggingface like the following error info. Even if i tried to manually download the models from "https://huggingface.co/ShilongLiu/GroundingDINO/tree/main", and ticked the bypass c++ problem option, it still could not work.
I dont know why this internet problem happen, and why it still cannot work with downloaded models.
以下是显示远程主机断开连接的报错信息/ This is the error info:
The text was updated successfully, but these errors were encountered: