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

[Feature request] Accelerating Network Access Using Mirror Sites #893

Open
hben35096 opened this issue Jul 21, 2024 · 2 comments
Open

[Feature request] Accelerating Network Access Using Mirror Sites #893

hben35096 opened this issue Jul 21, 2024 · 2 comments

Comments

@hben35096
Copy link

hben35096 commented Jul 21, 2024

I noticed that due to network issues in my region, using the Manager to install nodes often encounters instability. However, I can run the following command in advance:

git config --global url."https://mirror.ghproxy.com/https://github.com/".insteadOf https://github.com/

Then start ComfyUI, so that when using the Manager to install nodes, it uses the mirror site of Github for installation.
For example, installing:

https://github.com/ltdrdata/ComfyUI-Inspire-Pack
will become:
https://mirror.ghproxy.com/https://github.com/ltdrdata/ComfyUI-Inspire-Pack

achieving faster installation.


However, the node list and model list files of the Manager, such as:

https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json

I have no way to change them to:

https://mirror.ghproxy.com/https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
https://mirror.ghproxy.com/https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json

for network acceleration.


So, is there a way, such as a configuration file, where users can fill in some content themselves, like in a yaml file:

"https://github.com/": "https://mirror.ghproxy.com/https://github.com/"
"https://raw.githubusercontent.com/": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/"

@hben35096 hben35096 changed the title feature request:Accelerating Network Access Using Mirror Sites [Feature request] Accelerating Network Access Using Mirror Sites Jul 21, 2024
@planb788
Copy link

planb788 commented Aug 6, 2024

如果是能够自动下载模型的插件,你可以通过简单地在环境变量里面添加一个名为HF_ENDPOINT的环境变量来实现镜像加速,它的值需要设置为https://hf-mirror.com
If it's a plugin capable of automatically downloading models, you can achieve mirror acceleration by simply adding an environment variable named HF_ENDPOINT in your environment variables, with its value set to https://hf-mirror.com

@Leo-Mu
Copy link

Leo-Mu commented Oct 21, 2024

@planb788 Not working. 并不行,这样做在 ComfyUI-Manager 里并不会把模型下载地址切换到 hf-mirror

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

3 participants