pythongosssss / ComfyUI-WD14-Tagger

A ComfyUI extension allowing for the interrogation of booru tags from images.
MIT License
673 stars 72 forks source link

Cannot connect to host huggingface.co:443 ssl:default [None] #22

Open msleei opened 10 months ago

msleei commented 10 months ago

Error occurred when executing WD14Tagger|pysssss:

Cannot connect to host huggingface.co:443 ssl:default [None]

File "E:\ComfyUI_gpu\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_gpu\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_gpu\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_gpu\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger\wd14tagger.py", line 176, in tag tags.append(wait_for_async(lambda: tag(image, model, threshold, character_threshold, exclude_tags, replace_underscore, trailing_comma))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_gpu\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger\pysssss.py", line 174, in wait_for_async loop.run_until_complete(run_async()) File "asyncio\base_events.py", line 653, in run_until_complete File "E:\ComfyUI_gpu\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger\pysssss.py", line 164, in run_async r = await async_fn() ^^^^^^^^^^^^^^^^ File "E:\ComfyUI_gpu\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger\wd14tagger.py", line 46, in tag await download_model(model_name, client_id, node) File "E:\ComfyUI_gpu\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger\wd14tagger.py", line 111, in download_model await download_to_file( File "E:\ComfyUI_gpu\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger\pysssss.py", line 138, in download_to_file async with session.get(url) as response: File "E:\ComfyUI_gpu\python_embeded\Lib\site-packages\aiohttp\client.py", line 1187, in aenter self._resp = await self._coro ^^^^^^^^^^^^^^^^ File "E:\ComfyUI_gpu\python_embeded\Lib\site-packages\aiohttp\client.py", line 574, in _request conn = await self._connector.connect( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_gpu\python_embeded\Lib\site-packages\aiohttp\connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_gpu\python_embeded\Lib\site-packages\aiohttp\connector.py", line 911, in _createconnection , proto = await self._create_direct_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_gpu\python_embeded\Lib\site-packages\aiohttp\connector.py", line 1235, in _create_direct_connection raise last_exc File "E:\ComfyUI_gpu\python_embeded\Lib\site-packages\aiohttp\connector.py", line 1204, in _create_direct_connection transp, proto = await self._wrap_create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_gpu\python_embeded\Lib\site-packages\aiohttp\connector.py", line 1000, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc

explorerJi commented 10 months ago

同样的问题,这个节点是不是不能用了?

smthemex commented 10 months ago

文档有写离线的步骤,下载5个model和csv文件,改成对应的名字,在node路径下建一个model文件夹,然后把模型放进去,接着在pysssss.json里把抱脸的路径改成你本地的。

pythongosssss commented 10 months ago

Try like in #15 downloading them manually as it seems huggingface is blocked for you?

https://discuss.huggingface.co/t/huggingface-not-accessible-to-china/55482/2

DASHU0126 commented 8 months ago

文档有写离线的步骤,下载5个model和csv文件,改成对应的名字,在node路径下建一个model文件夹,然后把模型放进去,接着在pysssss.json里把抱脸的路径改成你本地的。

有下载链接吗?

smthemex commented 8 months ago

文档有写离线的步骤,下载5个model和csv文件,改成对应的名字,在node路径下建一个model文件夹,然后把模型放进去,接着在pysssss.json里把抱脸的路径改成你本地的。

有下载链接吗?

image

pythongosssss commented 8 months ago

I've added support for the HF_ENDPOINT environment variable & setting value in the pysssss.json file so you can use a HF mirror/proxy that isn't blocked for you, e.g. hf-mirror.com (I can't guarantee this is a good site, just found it from a few other github issues)

(自动翻译,如果没有意义请见谅)

我在 pysssss.json 文件中添加了对“HF_ENDPOINT”环境变量和设置值的支持,以便您可以使用未被阻止的 HF 镜像/代理,例如 hf-mirror.com(我不能保证这是一个好网站,只是从其他一些 github issues 中找到的)

wanglianjie91 commented 7 months ago

I've added support for the HF_ENDPOINT environment variable & setting value in the pysssss.json file so you can use a HF mirror/proxy that isn't blocked for you, e.g. hf-mirror.com (I can't guarantee this is a good site, just found it from a few other github issues)

(自动翻译,如果没有意义请见谅)

我在 pysssss.json 文件中添加了对“HF_ENDPOINT”环境变量和设置值的支持,以便您可以使用未被阻止的 HF 镜像/代理,例如 hf-mirror.com(我不能保证这是一个好网站,只是从其他一些 github issues 中找到的)

it is work.

BuShangTou commented 6 months ago

遇到相同,开了代理使用无效,开全局代理能解决。

mmwanzi commented 4 months ago

I had the same problem and it was solved. It may be that the wdtagger file cannot be used in real time, so you have to download it.

2ouo commented 4 months ago

「你好,她已经收到来信。」(假期自动回复)Dear Sir or Madam, Woofleod has received your letter. (Auto-reply during vacation)

everyseed commented 4 months ago

1)CMD ......\python_embeded\python.exe -s -m pip install -r .\requirements.txt 2)Open the pysssss.json , Change "HF_ENDPOINT": URL with "hf-mirror.com" 3)Enjoy

shen12388 commented 4 months ago

文档有写离线的步骤,下载5个model和csv文件,改成对应的名字,在node路径下建一个model文件夹,然后把模型放进去,接着在pysssss.json里把抱脸的路径改成你本地的。

本地路径是哪个啊

AlexJung3 commented 3 months ago

1)CMD ......\python_embeded\python.exe -s -m pip install -r .\requirements.txt 2)Open the pysssss.json , Change "HF_ENDPOINT": URL with "hf-mirror.com" 3)Enjoy

it is useful, thx

2ouo commented 3 months ago

「你好,她已经收到来信。」(假期自动回复)Dear Sir or Madam, Woofleod has received your letter. (Auto-reply during vacation)

ximing99 commented 2 months ago

我遇到了同样的问题,它得到了解决。可能是 wdtagger 文件无法实时使用,因此您必须下载它。

  • 在 huggingface [https://huggingface.co/SmilingWolf/wd-v1-4-moat-tagger-v2/tree/main] [model.onnx] 和 [selected_tags.csv] 上下载这两个文件 3201ed4502db7419fabef0414d7c029
  • 将文件名更改为 wd-v1-4-moat-tagger-v2 ,保留后缀
  • 把它们放到这个目录 comfyUI\custom nodes\comfyUI-WD14-Tagger\models ,如果文件夹里没有模型文件夹,你需要创建一个模型文件夹,把这两个文件放进去 希望对你有用!

good!

2ouo commented 2 months ago

「你好,她已经收到来信。」(假期自动回复)Dear Sir or Madam, Woofleod has received your letter. (Auto-reply during vacation)