개발/AI

ComfyUI 설치, FLUX 사용법

2realzoo 2024. 9. 24. 14:37

📒ComfyUI

ComfyUI 설치

ComfyUI Github Installing
위 페이지에서 각 운영체제에 맞게 다운로드

ComfyUI-manager 설치

ComfyUI-manager Github installation
위 페이지에서 method2을 사용하여 다운로드

FLUX 사용법

1. 필요 파일 다운로드

다운로드한 파일을 각각 아래의 경로에 복붙한다.

  1. https://huggingface.co/city96/FLUX.1-dev-gguf/tree/main
    -> FLUX 양자화 모델 다운로드 : 8bit 추천
    ComfyUI/_windows/_portable/ComfyUI/models/unet
  2. https://huggingface.co/comfyanonymous/flux_text_encoders/tree/main
    -> clip_l, t5xxl_fp8
    ComfyUI/_windows/_portable/ComfyUI/models/clip
  3. https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/main/vae
    -> diffusion_pytorch_model.safetensors 다운 flux_vae.safetensors로 이름 변경ComfyUI/_windows/_portable/ComfyUI/models/vae

2. GGUF Model을 ComfyUI에서 실행하기

  1. comfy-manager에서 manager 클릭
  2. Custom Nodes Manager 클릭
  3. search : gguf
  4. ComfyUI-GGUF install
  5. restart
     

🚨에러 발생

만약 에러 발생 시, requirements.txt 실행

cd ComfyUI_windows_portable/ComfyUI/custom_nodes/ComfyUI-GGUF
pip install -r requirements.txt

cd ComfyUI_windows_portable/ComfyUI
pip install -r requirements.txt

3.