Guest User

ERNIE IMAGE MANUAL INSTALL

a guest
Apr 19th, 2026
3,554
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.81 KB | None | 1 0
  1. Manual Install for my last Youtube video: https://youtu.be/B6dq0Q5UAaE
  2.  
  3. Windows Installation (Local PC)
  4. Step 1: Prerequisites
  5.  
  6. Make sure you have these installed before doing anything else:
  7.  
  8. 7-Zip
  9. https://www.7-zip.org/
  10.  
  11. Git for Windows
  12. https://git-scm.com/download/win
  13.  
  14. Reboot once after installing Git to make sure it is available in cmd.
  15.  
  16. Step 2: Download and Extract ComfyUI
  17.  
  18. Download the official NVIDIA portable build of ComfyUI:
  19.  
  20. ComfyUI v0.19.3 (NVIDIA Portable)
  21. https://github.com/comfyanonymous/ComfyUI/releases/download/v0.19.3/ComfyUI_windows_portable_nvidia.7z
  22.  
  23. Extract it with 7-Zip.
  24.  
  25. Your folder structure must look like this:
  26.  
  27. ComfyUI_windows_portable/
  28. ├── ComfyUI/
  29. │ ├── models/
  30. │ └── custom_nodes/
  31. ├── python_embeded/
  32. └── run_nvidia_gpu.bat
  33.  
  34. If this structure is wrong, stop here and fix it.
  35.  
  36. Step 3: Install Required Custom Nodes
  37.  
  38. Open Command Prompt inside:
  39.  
  40. ComfyUI_windows_portable\ComfyUI\custom_nodes
  41.  
  42. Then clone all required nodes:
  43.  
  44. git clone https://github.com/ltdrdata/ComfyUI-Manager.git
  45. git clone https://github.com/city96/ComfyUI-GGUF.git
  46. git clone https://github.com/rgthree/rgthree-comfy.git
  47. git clone https://github.com/yolain/ComfyUI-Easy-Use.git
  48. git clone https://github.com/kijai/ComfyUI-KJNodes.git
  49. git clone https://github.com/cubiq/ComfyUI_essentials.git
  50. git clone https://github.com/wallish77/wlsh_nodes.git
  51. git clone https://github.com/vrgamegirl19/comfyui-vrgamedevgirl.git
  52. git clone https://github.com/ClownsharkBatwing/RES4LYF.git
  53. Step 4: Install Node Dependencies
  54.  
  55. Still inside custom_nodes, install requirements using ComfyUI’s embedded Python:
  56.  
  57. ..\..\python_embeded\python.exe -m pip install -U pip
  58.  
  59. Then run:
  60.  
  61. ..\..\python_embeded\python.exe -m pip install -r ComfyUI-Manager\requirements.txt
  62. ..\..\python_embeded\python.exe -m pip install -r ComfyUI-GGUF\requirements.txt
  63. ..\..\python_embeded\python.exe -m pip install -r rgthree-comfy\requirements.txt
  64. ..\..\python_embeded\python.exe -m pip install -r ComfyUI-Easy-Use\requirements.txt
  65. ..\..\python_embeded\python.exe -m pip install -r ComfyUI-KJNodes\requirements.txt
  66. ..\..\python_embeded\python.exe -m pip install -r ComfyUI_essentials\requirements.txt
  67. ..\..\python_embeded\python.exe -m pip install -r wlsh_nodes\requirements.txt
  68. ..\..\python_embeded\python.exe -m pip install -r comfyui-vrgamedevgirl\requirements.txt
  69. ..\..\python_embeded\python.exe -m pip install -r RES4LYF\requirements.txt
  70.  
  71. Yes, this takes time. That’s why the installer exists 😄
  72.  
  73. Step 5: Download ERNIE IMAGE Models
  74.  
  75. All model files are hosted here:
  76.  
  77. 👉 Hugging Face
  78. https://huggingface.co/Aitrepreneur/FLX/tree/main
  79.  
  80. Place them exactly like this:
  81.  
  82. models/text_encoders/
  83. Qwen3-4B-UD-Q6_K_XL.gguf
  84. ministral-3-3b.safetensors
  85. ernie-image-prompt-enhancer.safetensors
  86.  
  87. models/vae/
  88. ae.safetensors
  89. flux2-vae.safetensors
  90.  
  91. models/unet/
  92. Choose one matching pair based on your GPU:
  93.  
  94. GPUs < 8 GB VRAM:
  95. z_image_turbo-Q5_K_S.gguf
  96. ernie-image-turbo-Q5_K_S.gguf
  97.  
  98. GPUs 8-12 GB:
  99. z_image_turbo-Q6_K.gguf
  100. ernie-image-turbo-Q6_K.gguf
  101.  
  102. GPUs 12-16 GB and more:
  103. z_image_turbo-Q8_0.gguf
  104. ernie-image-turbo-Q8_0.gguf
  105.  
  106. models/upscale_models/
  107. 4x-ClearRealityV1.pth
  108. RealESRGAN_x4plus_anime_6B.pth
  109.  
  110. Make sure the filenames are exactly correct.
  111.  
  112. Step 6: Run ComfyUI
  113.  
  114. From ComfyUI_windows_portable:
  115.  
  116. Double-click:
  117.  
  118. run_nvidia_gpu.bat
  119.  
  120. Then open your browser at:
  121.  
  122. http://127.0.0.1:8188
  123.  
  124. If it launches, you’re done.
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132. RunPod Installation (Cloud)
  133. Step 1: Create Account 👉 RunPod https://bit.ly/runpodAi
  134.  
  135. Step 2: Create Pod
  136.  
  137. Use a CUDA 12.1 compatible pod.
  138.  
  139. Recommended:
  140.  
  141. 24 GB VRAM GPU
  142. Your ComfyUI template
  143. Expose port 8188
  144. Step 3: Enter the ComfyUI Folder
  145.  
  146. SSH or use the Web Terminal inside the pod.
  147.  
  148. Make sure you are inside your ComfyUI root folder, where these exist:
  149.  
  150. models/
  151. custom_nodes/
  152. main.py
  153.  
  154. If you are not inside the ComfyUI root, stop and fix that first.
  155.  
  156. Step 4: Create Virtual Environment
  157.  
  158. Run:
  159.  
  160. python3 -m venv venv
  161. source venv/bin/activate
  162. pip install -U pip setuptools wheel
  163. Step 5: Install Torch
  164.  
  165. This setup assumes CUDA 12.1:
  166.  
  167. pip install torch==2.4.0+cu121 torchvision==0.19.0+cu121 torchaudio==2.4.0+cu121 \
  168. --index-url https://download.pytorch.org/whl/cu121
  169.  
  170. Then install the baseline image libs:
  171.  
  172. pip uninstall -y opencv-python || true
  173. pip install opencv-python-headless==4.12.0.88
  174. pip install "pillow>=11.0.0"
  175. Step 6: Clone Required Custom Nodes
  176.  
  177. Go into custom_nodes:
  178.  
  179. cd custom_nodes
  180.  
  181. Then clone all required nodes:
  182.  
  183. git clone https://github.com/ltdrdata/ComfyUI-Manager.git
  184. git clone https://github.com/city96/ComfyUI-GGUF.git
  185. git clone https://github.com/rgthree/rgthree-comfy.git
  186. git clone https://github.com/yolain/ComfyUI-Easy-Use.git
  187. git clone https://github.com/kijai/ComfyUI-KJNodes.git
  188. git clone https://github.com/cubiq/ComfyUI_essentials.git
  189. git clone https://github.com/wallish77/wlsh_nodes.git
  190. git clone https://github.com/vrgamegirl19/comfyui-vrgamedevgirl.git
  191. git clone https://github.com/ClownsharkBatwing/RES4LYF.git
  192.  
  193. Then go back to the ComfyUI root:
  194.  
  195. cd ..
  196. Step 7: Install Node Dependencies
  197.  
  198. With the virtual environment still active, run:
  199.  
  200. pip install -r custom_nodes/ComfyUI-Manager/requirements.txt
  201. pip install -r custom_nodes/ComfyUI-GGUF/requirements.txt
  202. pip install -r custom_nodes/rgthree-comfy/requirements.txt
  203. pip install -r custom_nodes/ComfyUI-Easy-Use/requirements.txt
  204. pip install -r custom_nodes/ComfyUI-KJNodes/requirements.txt
  205. pip install -r custom_nodes/ComfyUI_essentials/requirements.txt
  206. pip install -r custom_nodes/wlsh_nodes/requirements.txt
  207. pip install -r custom_nodes/comfyui-vrgamedevgirl/requirements.txt
  208. pip install -r custom_nodes/RES4LYF/requirements.txt
  209.  
  210. Then install the extra packages used by this setup:
  211.  
  212. pip install gguf piexif
  213. pip install librosa
  214. pip install google-generativeai google-ai-generativelanguage
  215. Step 8: Download ERNIE IMAGE Models
  216.  
  217. All model files are hosted here:
  218.  
  219. 👉 Hugging Face
  220. https://huggingface.co/Aitrepreneur/FLX/tree/main
  221.  
  222. You can use this base URL:
  223.  
  224. HF_BASE="https://huggingface.co/Aitrepreneur/FLX/resolve/main"
  225.  
  226. Then run:
  227.  
  228. mkdir -p models/text_encoders
  229. mkdir -p models/vae
  230. mkdir -p models/unet
  231. mkdir -p models/upscale_models
  232.  
  233. Download text encoders:
  234.  
  235. curl -L -o models/text_encoders/Qwen3-4B-UD-Q6_K_XL.gguf "$HF_BASE/Qwen3-4B-UD-Q6_K_XL.gguf?download=true"
  236. curl -L -o models/text_encoders/ministral-3-3b.safetensors "$HF_BASE/ministral-3-3b.safetensors?download=true"
  237. curl -L -o models/text_encoders/ernie-image-prompt-enhancer.safetensors "$HF_BASE/ernie-image-prompt-enhancer.safetensors?download=true"
  238.  
  239. Download VAE files:
  240.  
  241. curl -L -o models/vae/ae.safetensors "$HF_BASE/ae.safetensors?download=true"
  242. curl -L -o models/vae/flux2-vae.safetensors "$HF_BASE/flux2-vae.safetensors?download=true"
  243.  
  244. Choose one matching pair for your GPU and download both files.
  245.  
  246. For Q5_K_S:
  247.  
  248. curl -L -o models/unet/z_image_turbo-Q5_K_S.gguf "$HF_BASE/z_image_turbo-Q5_K_S.gguf?download=true"
  249. curl -L -o models/unet/ernie-image-turbo-Q5_K_S.gguf "$HF_BASE/ernie-image-turbo-Q5_K_S.gguf?download=true"
  250.  
  251. For Q6_K:
  252.  
  253. curl -L -o models/unet/z_image_turbo-Q6_K.gguf "$HF_BASE/z_image_turbo-Q6_K.gguf?download=true"
  254. curl -L -o models/unet/ernie-image-turbo-Q6_K.gguf "$HF_BASE/ernie-image-turbo-Q6_K.gguf?download=true"
  255.  
  256. For Q8_0:
  257.  
  258. curl -L -o models/unet/z_image_turbo-Q8_0.gguf "$HF_BASE/z_image_turbo-Q8_0.gguf?download=true"
  259. curl -L -o models/unet/ernie-image-turbo-Q8_0.gguf "$HF_BASE/ernie-image-turbo-Q8_0.gguf?download=true"
  260.  
  261. Download upscalers:
  262.  
  263. curl -L -o models/upscale_models/4x-ClearRealityV1.pth "$HF_BASE/4x-ClearRealityV1.pth?download=true"
  264. curl -L -o models/upscale_models/RealESRGAN_x4plus_anime_6B.pth "$HF_BASE/RealESRGAN_x4plus_anime_6B.pth?download=true"
  265.  
  266.  
  267. Step 9: Run ComfyUI and watch logs
  268.  
  269. tail -f /workspace/logs/comfyui.log
Add Comment
Please, Sign In to add comment