comfyui_segment_anything icon indicating copy to clipboard operation
comfyui_segment_anything copied to clipboard

Error occurred when executing GroundingDinoModelLoader (segment anything): (MaxRetryError("HTTPSConnectionPool(host='hf-mirror.com', port=443): Max retries exceeded with url: /bert-base-uncased/resolve/main/tokenizer_config.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))"), '(Request ID: d909f1db-a767-476b-b802-74918ea69c27)')

Open jokero3answer opened this issue 9 months ago • 6 comments

You need to assure your PC can access "huggingface.com" directly or by proxy which you set is "hf-mirror.com". In china mainland it is normal issue. 你确定你的电脑能正常访问huggingface.com或者通过你设置的代理“hf-mirror.com能直接访问才行,不是程序本身的问题。

ultimatech-cn avatar May 23 '24 02:05 ultimatech-cn

I know,Iknow,I just to skill the question.you can't download the file-config_url ,so you should build by youself. 就是程序代码里面有一个:groundingdino_model_dir_name = "grounding-dino" groundingdino_model_list = { "GroundingDINO_SwinT_OGC (694MB)": { "config_url":"https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/GroundingDINO_SwinT_OGC.cfg.py", "model_url": "https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/groundingdino_swint_ogc.pth", so,所以你需要保证你的电脑里面的GroundingDINO文件夹里面有一个config_url文件,即GroundingDINO_SwinT_OGC.cfg.py这个程序文件,因为你网络问题,他不会自己下载,但是捏可以自己创建。 1-在你的文件path/models/grounding-dino里面创建一个.txt 2-修改命名为:GroundingDINO_SwinT_OGC.cfg.py或者另一个名字 3-在网站里面点击GroundingDino对应的config_url,4-然后把跳出来的网站里面的代码给复制进去,5-保存,运行你的comfyUI。保证解决问题。

0m0Ding avatar Jun 20 '24 12:06 0m0Ding

遇到同样问题,服务器可以直接下载https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/groundingdino_swint_ogc.pth 对应文件夹下面是有GroundingDINO_SwinT_OGC.cfg.py 文件的 楼主的问题解决了吗?

I know,Iknow,I just to skill the question.you can't download the file-config_url ,so you should build by youself. 就是程序代码里面有一个:groundingdino_model_dir_name = "grounding-dino" groundingdino_model_list = { "GroundingDINO_SwinT_OGC (694MB)": { "config_url":"https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/GroundingDINO_SwinT_OGC.cfg.py", "model_url": "https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/groundingdino_swint_ogc.pth", so,所以你需要保证你的电脑里面的GroundingDINO文件夹里面有一个config_url文件,即GroundingDINO_SwinT_OGC.cfg.py这个程序文件,因为你网络问题,他不会自己下载,但是捏可以自己创建。 1-在你的文件path/models/grounding-dino里面创建一个.txt 2-修改命名为:GroundingDINO_SwinT_OGC.cfg.py或者另一个名字 3-在网站里面点击GroundingDino对应的config_url,4-然后把跳出来的网站里面的代码给复制进去,5-保存,运行你的comfyUI。保证解决问题。

jasonzhouxf avatar Jun 22 '24 11:06 jasonzhouxf

把这3个模型全部按要求安装好:https://github.com/storyicon/comfyui_segment_anything?tab=readme-ov-file#bert-base-uncased

chwshuang avatar Jul 17 '24 11:07 chwshuang

这是来自GC邮箱的自动回复邮件。   您好,我会尽快给您回复。

0m0Ding avatar Jul 17 '24 11:07 0m0Ding

谢谢您能回复我的消息,目前有关segment_anything的问题已经得到解决,十分感谢。

GCsaner @.***

 

------------------ 原始邮件 ------------------ 发件人: "storyicon/comfyui_segment_anything" @.>; 发送时间: 2024年7月17日(星期三) 晚上7:19 @.>; @.@.>; 主题: Re: [storyicon/comfyui_segment_anything] Error occurred when executing GroundingDinoModelLoader (segment anything): (MaxRetryError("HTTPSConnectionPool(host='hf-mirror.com', port=443): Max retries exceeded with url: /bert-base-uncased/resolve/main/tokenizer_config.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))"), '(Request ID: d909f1db-a767-476b-b802-74918ea69c27)') (Issue #67)

把这3个模型全部按要求安装好:https://github.com/storyicon/comfyui_segment_anything?tab=readme-ov-file#bert-base-uncased

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

0m0Ding avatar Jul 17 '24 13:07 0m0Ding