Stable Diffusion Webui安裝卡在Installing gfpgan、Installing clip這幾步解決
其實就是類似pip換源
任意文本編輯器打開webui根目錄下的launch.py找到下列代碼
gfpgan_package = os.environ.get('GFPGAN_PACKAGE', "git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379")
? ? clip_package = os.environ.get('CLIP_PACKAGE', "git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1")
? ? openclip_package = os.environ.get('OPENCLIP_PACKAGE', "git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b")
把那幾個GitHub的源改成國內(nèi)碼云搬運的
gfpgan_package = os.environ.get('GFPGAN_PACKAGE', "git+https://gitee.com/gavinss1/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379")
? ? clip_package = os.environ.get('CLIP_PACKAGE', "git+https://gitee.com/jerrylinkun/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1")
? ? openclip_package = os.environ.get('OPENCLIP_PACKAGE', "git+https://gitee.com/ufhy/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b")
同理Stability-AI/stablediffusion、taming-transformers、k-diffusion、CodeFormer、BLIP那幾步應該也可以用同樣的方法,gitee上應該也有人搬運了
stable_diffusion_repo = os.environ.get('STABLE_DIFFUSION_REPO', "https://github.com/Stability-AI/stablediffusion.git")
? ? taming_transformers_repo = os.environ.get('TAMING_TRANSFORMERS_REPO', "https://github.com/CompVis/taming-transformers.git")
? ? k_diffusion_repo = os.environ.get('K_DIFFUSION_REPO', 'https://github.com/crowsonkb/k-diffusion.git')
? ? codeformer_repo = os.environ.get('CODEFORMER_REPO', 'https://github.com/sczhou/CodeFormer.git')
? ? blip_repo = os.environ.get('BLIP_REPO', 'https://github.com/salesforce/BLIP.git')
在碼云搜就有
