NokiMo
Furkan Gözükara
Furkan Gözükara

patreon


RunPod ComfyUI Auto Installer With SDXL Auto Install Including Refiner


NEW THREAD HERE : https://www.patreon.com/posts/105023709

.

.

.

NEW THREAD HERE : https://www.patreon.com/posts/105023709

.

.

.

.

.

.

.

.

.

Join discord and tell me your discord username to get a special rank : SECourses Discord

Patreon exclusive posts index

18 February 2024 Update:

6 February 2024 Update:

17 January 2024 Update:

15 August 2023 Update:

Installation is now faster. Don't forget to select fast-stable-diffusion template. It also nows auto installs ComfyUI Manager. Tested on RTX 3090 machine and speed for SDXL 1024x1024 is 3.93 it/s. It also downloads best VAE file of SDXL. So make sure to use that VAE.

Video published : ComfyUI Master Tutorial - Stable Diffusion XL (SDXL) - Install On PC, Google Colab (Free) & RunPod

If you also upvote this Reddit thread I would appreciate you very much

How To Install

Register your RunPod account : https://runpod.io?ref=1aka98lq

Select Fast Stable diffusion template or any template you wish like Pytorch (if you use this one make sure to customize pod and add http port 3001 to connect via proxy) : https://www.runpod.io/console/explore

Actually Pytorch template is better since it is more lightweight 

Make sure that pod is not broken here a tutorial : https://www.patreon.com/posts/97919576

Download comfy_ui.sh and upload to workspace

Install and instructions are posted on this GitHub readme file 

SDXL workflows are attached. Download them and use load button

This script will automatically download SDXL models as well for you

Upload your LoRAs into /workspace/ComfyUI/models/loras

Upload models into /workspace/ComfyUI/models/checkpoints

All below workflows are updated for SDXL 1.0 base and refiner models

SDXL_1.json workflow has the SDXL setup with refiner with best settings. Working amazing. Here Screenshot

SDXL_With_LORA.json workflow has LoRA included. Refiner is disabled since I used my own trained LoRA and LoRA currently trained only on the base model. You can enable/disable with select node and CTRL+m

SDXL_LoRA_InPAINT.json has LoRA and inpainting. I used inpainting to inpaint my face to improve quality. Hopefully a tutorial video coming to show best workflow for LoRA training and inpainting.

SDXL_Inpaint-No-Lora.json : No LoRA and inpaints with SDXL

SDXL_Refiner-Inpaint-No-Lora.json : No LoRA and inpaints with SDXL refiner

Here step by step screenshots of how to use : step1.png - step2.png - step3.png - step4.png - step5.png

How to kill running instance?

First install below package

Then for example to kill port 3001 do below


RunPod ComfyUI Auto Installer With SDXL Auto Install Including Refiner RunPod ComfyUI Auto Installer With SDXL Auto Install Including Refiner RunPod ComfyUI Auto Installer With SDXL Auto Install Including Refiner RunPod ComfyUI Auto Installer With SDXL Auto Install Including Refiner RunPod ComfyUI Auto Installer With SDXL Auto Install Including Refiner

Comments

mkdir -p ./models/checkpoints/sd15 wget "https://civitai.com/api/download/models/132760" -O ./models/checkpoints/sd15/absolutereality_v181.safetensors

Furkan Gözükara

please don't bother, I asked chatgpt and it gave me the code. thanks.

Pallavi Chauhan

Hi, If I want to create subfolders for different kind of models within the checkpoints folder, can I add a code for that in comfyui.sh file? For ex- saving sdxl models into sdxl folder and sd1.5 models into SD1.5 This is the code for SDXL model wget "https://civitai.com/api/download/models/288982" -O ./models/checkpoints/juggernautXL_v8Rundiffusion.safetensors and this is for SD1.5 model wget "https://civitai.com/api/download/models/132760" -O ./models/checkpoints/absolutereality_v181.safetensors They are both stored in the "checkpoints" folder. I want to create a subfolder inside checkpoints folder for sdxl and sd.15 If you could give me an example code for each then it would be very helpful. Thanks!

Pallavi Chauhan

You need to follow this format wget "https://civitai.com/api/download/models/288982" -O ./models/checkpoints/Modelname.safetensors

Furkan Gözükara

I tried adding the following code in the .sh file but it only downloads, doesn't show up in the models wget -c https://civitai.com/api/download/models/76907 -P ./models/checkpoints/ wget -c https://civitai.com/api/download/models/143906 -P ./models/checkpoints/ wget -c https://civitai.com/api/download/models/288982 -P ./models/checkpoints/

Pallavi Chauhan

yes you can add all into your sh file with wget. yes controlnet i think you need to manually install. i havent done it before on comfyui

Furkan Gözükara

Hi, I wanted to add some additional checkpoints, models, vae, upscale models, ipadapter models and loras in the intial "comfyui.sh" file so that I don't have to run multiple wget commands later on. What code should I add? Some models are from civit ai. Can you add an example for each of these? also the control net models aren't installed inside comfyui "controlnet" folder. It is a separate installation.

Pallavi Chauhan

but now you learnt new stuff. congrats.

Furkan Gözükara

Please don't bother, I managed to fix this by editing the "comfyUI.sh" file you provided and incluing the commands of missing packages. It took me two days to figure out this simple fix. :D

Pallavi Chauhan

i am running it on runpod, does it still need a pc connect? Basically I am trying to load this workflow here - https://openart.ai/workflows/-/-/j9ZrbVS2QKetKdiLVqmw#comment-ql12My0ozb6pTGTNGxj8 The first comment suppose to give a fix for the [import failed] error. also some ppl in the olivio sarikas discord server had the same issue and they resolved it by installing "segment anything" & "omegaconf" https://github.com/sipherxyz/comfyui-art-venture/issues/4 The only difference is they were running on local machine so they used this path "comfyui_windows_portable/python_embeded/lib/site_packages" Since I am on Runpod, I tried to install it inside "workspace/ComfyUI/venv/lib/python3.10/site-packages" I ran 'pip install segment-anything' command but it's downloading the 'segment anything' folders in the "venv" folder outside the "comfyui" folder. I am trying to put it inside the "comfyui/venv/lib/site_packages" folder but it is not letting me move the folders. Nor, I can download these folders and upload them manually. When I run the command with the desired file path I get "no such file or directory" error. If there is an easy fix do let me know. Else, let me know where to buy your paid support? Thanks, really appreciate your help!

Pallavi Chauhan

hello. yes if you buy paid support i can connect your pc and help you to fix. sadly currently i dont know easy fix without working on it

Furkan Gözükara

Hi, Do you know what to do if a missing node shows "import failed" error in comfyUI. I am trying to load node called "control net preprocessor". It is linked with a missing node called "comfyUI art venture" I git cloned the repo and also tried installing it inside the comfyUi gui, but it shows this "import failed" error. https://www.dropbox.com/scl/fi/nexeqhscairzfaof6mle1/import-failed.png?rlkey=d5zhfgtncw56iwo4q3cgzcsns&dl=0 this is the github file link - https://github.com/sipherxyz/comfyui-art-venture my workflow is stalled because of this error. If I need to buy your paid support to help fix this issue, I will. Let me know. Thanks.

Pallavi Chauhan

great

Furkan Gözükara

hi. i have installer for that here : https://www.patreon.com/posts/84896373 i may update it soon again with newest models if there are any new. but it will download over 60 models available for you and update both controlnet and automatic1111 for you

Furkan Gözükara

Hi, I want to install control net with all its nodes on runpod. I was able to download models but the preprocessors are not showing up anywhere.

Pallavi Chauhan

thanks, it worked!

Pallavi Chauhan

that is jupyter lab error. use cd checkpoints in terminal or with wget command give download path like -O checkpoints/model.safetensors of course give full path

Furkan Gözükara

Hi, On Runpod, I am unable to go inside the "checkpoints" folder. I can go in other folders easily but not checkpoints. You have written that all models should go inside "/workspace/ComfyUI/models/checkpoints" Do I need to open the checkpoints folder to run the wget command using the terminal? Can I run it elsewhere giving it the checkpoint folder path?

Pallavi Chauhan

on windows they already have pre-installed version. so i don't have. shown in video : https://youtu.be/FnMHbhvWUhE

Furkan Gözükara

hi - do you have this for windows too? thanks

indievish

yes but which template you are using?

Furkan Gözükara

I'm using juptyer lab to connect and when I follow you tut I get stuck at the end with this error OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 3001): address already in use (venv) root@94526f2983a6:/workspace/ComfyUI#

Matthew Salamander

script got updated please download again i tested and working great. now includes comfy ui manager too

Furkan Gözükara

I am going to include it to the script working on it right now

Furkan Gözükara

Have you tried this? make sure that you move into custom_nodes of comfyui installation cd custom_nodes git clone https://github.com/ltdrdata/ComfyUI-Manager.git Restart ComfyUI

Furkan Gözükara

Hi, how can i install "comfyui manager" on runpod

Rafał Ryniak

haha my bad added it

Furkan Gözükara

looks like we're missing `comfy_ui.sh`.

DFH


Related Creators