--- language: - en tags: - comfyui - template - workflow --- # HOW TO USE: Drag and Drop Template.JSON / Template.PNG into [ComfyUI in browser](https://github.com/comfyanonymous/ComfyUI) to load the template! (Yes even output PNG file works as workflow template). # PREQUISITE INSTALLATION NOTES: It requires custom nodes and file requirements, it's easy: 1. "SDXL Prompt Sytler" dropdown menu (install sdxl prompt styler first, by open command prompt from this folder \ComfyUI\custom_nodes\ then use this command "git clone https://github.com/twri/sdxl_prompt_styler.git") 2. "Recommended SDXL Resolution Calculator" (install it first just like number 1, open command prompt from this folder \ComfyUI\custom_nodes\ then use this command "git clone https://github.com/marhensa/sdxl-recommended-res-calc.git") 3. LoRA selector, (needs a SDXL LoRA file, for example, download SDXL LoRA example from [StabilityAI](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors), put into ComfyUI\models\loras\ ) 4. VAE selector, (needs a VAE file, download SDXL BF16 VAE from [here](https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/resolve/main/sdxl_vae.safetensors), put into \ComfyUI\models\vae\ ), just in case in the future there's better VAE or mandatory VAE for some models, use this selector 5. Upscale model, (needs to be downloaded into \ComfyUI\models\upscale_models\ Recommended one is 4x-UltraSharp, download [from here](https://mega.nz/folder/qZRBmaIY#nIG8KyWFcGNTuMX_XNbJ_g). All the list of Upscale model is [here](https://upscale.wiki/w/index.php?title=Model_Database&oldid=1571)) 6. Single (Non Base+Refiner) SDXL Finetuned Checkpoints, (can be downloaded in CivitAI, my favorite is [Crystal Clear XL](https://civitai.com/models/122822), download Safetensors file and put into \ComfyUI\models\checkpoints\ ) 7. "ComfyUI ControlNet Aux" custom node can be installed with [this instruction](https://github.com/Fannovel16/comfyui_controlnet_aux#installation), and the models can be downloaded [from here](https://huggingface.co/lllyasviel/sd_control_collection/tree/main), put into \ComfyUI\models\controlnet\ 8. Restart ComfyUI to apply these installation 9. Note: When loading a PNG Workflow from here, first click Refresh on ComfyUI menu, it will refresh models that you have on your PC, then choose it (Checkpoints, VAE, LoRA, Upscale Model, ControlNet models etc) accordingly. . > Custom Node "[SDXL Prompt Sytler](https://github.com/twri/sdxl_prompt_styler)", makes prompt minimalistic (both positive and negative), because art style and other enhancement is selected via SDXL Prompt Styler dropdown menu. So you could create so many style easily, without need to remembering custom prompt for specific art style. There's 3 style you could combine. I usualy put the top one for "sai-enhance" as a replacement for "masterpiece, highest quality, etc", second one is the main style, third one is another, or leaving it as blank one "sai-base". > Custom Node "[Recommended SDXL Resolution Calculator](https://github.com/marhensa/sdxl-recommended-res-calc)", makes targeting final resolution much easier, because it will calculates recommended SDXL initial size and its upscale (or reverse upscale) value. You only need to input your FINAL target resolution with this custom node. . # WORKFLOW SELECTION: ## [MY RECOMMENDATION!] Single SDXL Checkpoint Workflow with Model Upscaler: (drag and drop that PNG image file into ComfyUI interface, it will open up as workflow template) ![SDXL_Single_Tidy_PromptStyler-LoRA-VAE-RecRes-ModelUpscale.png](https://huggingface.co/datasets/marhensa/comfyui-workflow/resolve/main/SDXL_Single_Tidy_PromptStyler-LoRA-VAE-RecRes-ModelUpscale.png) ## Same as Above with Additional Control-LoRA: (image reference example: [halo.jpg](https://huggingface.co/datasets/marhensa/comfyui-workflow/resolve/main/halo.jpg)) ![SDXL_Single_Tidy_PromptStyler-LoRA-VAE-RecRes-ModelUpscale-ControlNet.png](https://huggingface.co/datasets/marhensa/comfyui-workflow/resolve/main/SDXL_Single_Tidy_PromptStyler-LoRA-VAE-RecRes-ModelUpscale-ControlNet.png) ## Single SDXL Checkpoint Latent Upscaler (it's fast but grainy): ![SDXL_Single_Tidy_PromptStyler-LoRA-VAE-RecRes-LatentUpscale.png](https://huggingface.co/datasets/marhensa/comfyui-workflow/resolve/main/SDXL_Single_Tidy_PromptStyler-LoRA-VAE-RecRes-LatentUpscale.png) ## [My Previous Recommendation] Simple Prompt SDXL: ![SDXL_BaseRefiner_Tidy_PromptStyler-LoRA-VAE.png](https://huggingface.co/datasets/marhensa/comfyui-workflow/resolve/main/SDXL_BaseRefiner_Tidy_PromptStyler-LoRA-VAE.png) ## Simple Prompt SD1.5 Based: ![SD15_PromptStyler-LoRA-VAE-LatentHiresFix.png](https://huggingface.co/datasets/marhensa/comfyui-workflow/resolve/main/SD15_PromptStyler-LoRA-VAE-LatentHiresFix.png)