Guest User

V3 Manual Comfyui Flux Models Install

a guest
Feb 2nd, 2025
19,010
3
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 KB | None | 3 0
  1. Manual Install Method from my last Youtube Video: https://youtu.be/q5kpr84uyzc
  2.  
  3.  
  4. 1. Download and extract the ComfyUI portable version from:
  5. https://github.com/comfyanonymous/ComfyUI
  6.  
  7. 2. After extraction, you should have this folder structure:
  8. ```
  9. ComfyUI_windows_portable/
  10. ├── ComfyUI/
  11. │ ├── models/
  12. │ └── custom_nodes/
  13. ├── python_embeded/
  14. └── run_nvidia_gpu.bat
  15. ```
  16.  
  17. ## Python Environment Setup (Important First Step!)
  18.  
  19. Navigate to `ComfyUI_windows_portable/python_embeded` and:
  20.  
  21. 1. Run `python.exe` to check your Python version
  22. 2. Based on your Python version, download the appropriate InsightFace wheel file:
  23. - Python 3.9: `insightface-0.7.3-cp39-cp39-win_amd64.whl`
  24. - Python 3.10: `insightface-0.7.3-cp310-cp310-win_amd64.whl`
  25. - Python 3.11: `insightface-0.7.3-cp311-cp311-win_amd64.whl`
  26. - Python 3.12: `insightface-0.7.3-cp312-cp312-win_amd64.whl`
  27.  
  28. Download from: https://huggingface.co/Aitrepreneur/FLX/tree/main
  29.  
  30. 3. Install required packages:
  31.  
  32. python.exe -m pip install --use-pep517 facexlib
  33. python.exe -m pip install git+https://github.com/rodjjo/filterpy.git
  34. python.exe -m pip install onnxruntime onnxruntime-gpu insightface-0.7.3-cp311-cp311-win_amd64.whl
  35.  
  36.  
  37. don't forget to replace here "insightface-0.7.3-cp311-cp311-win_amd64.whl" by the correct file name version that you donwloaded
  38.  
  39.  
  40. ## Custom Nodes Installation
  41.  
  42. Navigate to `ComfyUI_windows_portable/ComfyUI/custom_nodes` and clone these repositories:
  43.  
  44.  
  45. git clone https://github.com/ltdrdata/ComfyUI-Manager.git
  46. git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale --recursive
  47. git clone https://github.com/kijai/ComfyUI-LivePortraitKJ
  48. git clone https://github.com/PowerHouseMan/ComfyUI-AdvancedLivePortrait
  49.  
  50.  
  51. ## Models Installation
  52.  
  53. Navigate to `ComfyUI_windows_portable/ComfyUI/models` and create the following structure:
  54.  
  55. ### 1. UNET Models
  56. Create `models/unet` and download:
  57. - Choose one GGUF model from: https://huggingface.co/city96/FLUX.1-dev-gguf/tree/main
  58. - FP8 Models (optional for 24GB+ VRAM):
  59. - `flux1-dev-fp8.safetensors`
  60. - `flux1-fill-dev_fp8.safetensors`
  61. - `flux1-canny-dev-fp8.safetensors`
  62. - `flux1-depth-dev-fp8.safetensors`
  63.  
  64. ### 2. CLIP Models
  65. Create `models/clip` and download:
  66. - Choose one GGUF encoder from: https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/tree/main
  67. - Optional text encoders from: https://huggingface.co/comfyanonymous/flux_text_encoders/tree/main
  68. - `ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors`
  69. - `longclip-L.pt`
  70. - `clip_l.safetensors`
  71. - `llava_llama3_fp8_scaled.safetensors`
  72. - `t5xxl_fp8_e4m3fn.safetensors`
  73. - `t5xxl_fp16.safetensors`
  74.  
  75. Also clone:
  76.  
  77. git clone https://huggingface.co/Aitrepreneur/clip-vit-large-patch14
  78.  
  79. Download `model.safetensors` inside the cloned directory.
  80.  
  81. ### 3. VAE Models
  82. Create `models/vae` and download:
  83. - `ae.safetensors`
  84. - `ae.sft`
  85. - `LTX_vae.safetensors`
  86. - `hunyuan_video_vae_bf16.safetensors`
  87.  
  88. ### 4. XLabs Controlnet Models
  89. Create `models/xlabs/controlnets` and download:
  90. - `flux-canny-controlnet-v3.safetensors`
  91. - `flux-depth-controlnet-v3.safetensors`
  92. - `flux-hed-controlnet-v3.safetensors`
  93.  
  94. ### 5. Controlnet Models
  95. Create `models/controlnet` and download:
  96. - `diffusion_pytorch_model_promax.safetensors`
  97. - `Shakker-LabsFLUX1-dev-ControlNet-Union-Pro.safetensors`
  98.  
  99. ### 6. Upscale Models
  100. Create `models/upscale_models` and download:
  101. - `4x-ClearRealityV1.pth`
  102. - `RealESRGAN_x4plus_anime_6B.pth`
  103.  
  104. ### 7. PuLID Model
  105. Create `models/pulid` and download:
  106. - `pulid_flux_v0.9.0.safetensors`
  107.  
  108. ### 8. LLM Models
  109. Create `models/LLM` and:
  110. ```bash
  111. git clone https://huggingface.co/Aitrepreneur/Florence-2-base
  112. git clone https://huggingface.co/Aitrepreneur/Florence-2-large
  113. git clone https://huggingface.co/Aitrepreneur/llava-llama-3-8b-text-encoder-tokenizer
  114. ```
  115.  
  116. Inside `llava-llama-3-8b-text-encoder-tokenizer`, download:
  117. - `model-00001-of-00004.safetensors`
  118. - `model-00002-of-00004.safetensors`
  119. - `model-00003-of-00004.safetensors`
  120. - `model-00004-of-00004.safetensors`
  121.  
  122. ### 9. Style Models
  123. Create `models/style_models` and download:
  124. - `flux1-redux-dev.safetensors`
  125.  
  126. ### 10. Loras
  127. Create `models/loras` and download:
  128. - `csetiarcane-nfjinx-v1-6000.safetensors`
  129.  
  130. ### 11. LivePortrait
  131. Create `models/liveportrait` and download:
  132. - `landmark.onnx`
  133.  
  134. ### 12. SAMs
  135. Create `models/sams` and download:
  136. - `sam_vit_b_01ec64.pth`
  137.  
  138. ### 13. Ultralytics
  139. Create `models/ultralytics` and:
  140.  
  141. git clone https://huggingface.co/Aitrepreneur/bbox
  142. git clone https://huggingface.co/Aitrepreneur/segm
  143.  
  144. Download:
  145. - `face_yolov8n.pt`
  146.  
  147. ### 14. Additional Repositories
  148. In the `models` directory:
  149.  
  150. git lfs install
  151. git clone https://huggingface.co/Aitrepreneur/insightface
  152. git clone https://huggingface.co/Aitrepreneur/CogVideo
  153.  
  154.  
  155. Inside `CogVideo/CogVideoX-5b-I2V/transformer`, download:
  156. - `diffusion_pytorch_model-00001-of-00003.safetensors`
  157. - `diffusion_pytorch_model-00002-of-00003.safetensors`
  158. - `diffusion_pytorch_model-00003-of-00003.safetensors`
  159.  
  160.  
  161.  
  162.  
  163. ## RunPod Installation
  164.  
  165. 1. Create account at: https://bit.ly/runpodAi
  166. 2. Choose a 24GB VRAM GPU with the aitrepreneur/comfyui template
  167. 3. Access port 8888
  168. 4. Follow the same folder structure as above
  169. 5. Use `curl` to download files:
  170.  
  171. curl -L -o "filename" "URL"
  172.  
  173. 6. Monitor logs with:
  174.  
  175. tail -f workspace/logs/comfyui.log
  176.  
Comments
Add Comment
Please, Sign In to add comment