停止浪费,开始同步!
厌烦了重复安装模型的繁琐?来吧,只需60秒,教你如何让ComfyUI与本地Stable Diffusion WebUI无缝对接,告别重复设置的痛苦。我们将展示如何轻松搞定模型、节点、CLIP、VAE和Lora的配置,让你的双UI烦恼成为历史。而且,对于路径迷茫的AI艺术家们,我们这里还有配置文件,简单调整,立马搞定。
准备好释放你的AI作图工具的威力,同时摆脱杂乱无章了吗?首先,在你的ComfyUI文件夹里找到那个隐藏的宝贝——'extra_model_paths.yaml.example'文件。把它文件名改成’extra_model_paths.yaml’,然后,就准备开始了。启动你最喜欢的文本编辑器,或者如果你想像是个指挥官,那就潜入终端(Mac/Linux)或命令提示符(Windows)。通过调整这个配置文件,来利用Stable Diffusion WebUI的模型、节点、CLIP、VAE和Lora的魔力,一切都在你的ComfyUI的舒适环境中。具体配置文件可以参照下面这个例子哟。
# Rename this to extra_model_paths.yaml and ComfyUI will load it
# config for a1111 ui
a111:
base_path: /Users/your_username/stable-diffusion-webui/ # 指向Stable Diffusion WebUI的安装路径
checkpoints: models/Stable-diffusion # Stable Diffusion模型的路径
configs: models/Stable-diffusion # Stable Diffusion配置文件的路径
vae: models/VAE # VAE模型路径
loras: |
models/Lora # Lora模型路径
models/LyCORIS # LyCORIS模型路径(如果有的话)
upscale_models: |
models/ESRGAN # ESRGAN模型路径
models/RealESRGAN # RealESRGAN模型路径
models/SwinIR # SwinIR模型路径
embeddings: embeddings # 文本嵌入路径
hypernetworks: models/hypernetworks # 超网络模型路径
controlnet: models/ControlNet # ControlNet模型路径
# config for comfyui
comfyui:
base_path: /Users/your_username/ComfyUI/ # ComfyUI的安装路径
checkpoints: /Users/your_username/stable-diffusion-webui/models/Stable-diffusion # 指向A1111安装目录下的Stable Diffusion模型
clip: /Users/your_username/stable-diffusion-webui/models/clip/ # 指向A1111的CLIP模型路径
clip_vision: /Users/your_username/stable-diffusion-webui/models/clip_vision/ # CLIP视觉模型路径
configs: /Users/your_username/stable-diffusion-webui/models/configs/ # Stable Diffusion的配置文件路径
controlnet: /Users/your_username/stable-diffusion-webui/models/ControlNet/ # 指向ControlNet模型的路径
embeddings: /Users/your_username/stable-diffusion-webui/embeddings/ # 嵌入模型路径
loras: /Users/your_username/stable-diffusion-webui/models/Lora/ # Lora模型路径
upscale_models: /Users/your_username/stable-diffusion-webui/models/upscale_models/ # 指向超分辨率模型路径
vae: /Users/your_username/stable-diffusion-webui/models/VAE/ # VAE模型路径
所有路径必须是你系统上实际文件所在的绝对路径。
领取专属 10元无门槛券
私享最新 技术干货