storyicon / comfyui_segment_anything

Based on GroundingDino and SAM, use semantic strings to segment any element in an image. The comfyui version of sd-webui-segment-anything.
Apache License 2.0
676 stars 78 forks source link

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)') #67

Open jokero3answer opened 4 months ago

jokero3answer commented 4 months ago

image Diagnostics-1715002033.log

ultimatech-cn commented 4 months ago

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能直接访问才行,不是程序本身的问题。

0m0Ding commented 3 months ago

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 commented 3 months ago

遇到同样问题,服务器可以直接下载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。保证解决问题。

chwshuang commented 2 months ago

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

0m0Ding commented 2 months ago

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

0m0Ding commented 2 months ago

谢谢您能回复我的消息,目前有关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: @.***>