CivArchive
    SDXL Workflow Templates for ComfyUI with ControlNet - v2.1
    NSFW
    Preview undefined
    Preview undefined

    These workflow templates are intended as multi-purpose templates for use on a wide variety of projects. They can be used with any SDXL checkpoint model.

    They are intended for use by people that are new to SDXL and ComfyUI.

    List of Templates

    • Simple SDXL Template

    • Intermediate SDXL Template

      • ControlNet (Zoe depth)

    • Advanced SDXL Template

      • ControlNet (4 options)

      • A and B versions (see below for more details)

    Additional Simple and Intermediate templates are included, with no Styler node, for users who may be having problems installing the Mile High Styler.

    Prerequisites

    • ComfyUI installation

    • at least 8GB VRAM is recommended

    Installation

    Important: Please run updates on the custom nodes before loading new template versions. This will ensure the template picks up new node versions and not the older versions.

    Optional downloads (recommended)

    Troubleshooting

    Please see the new CivitAI article

    Troubleshooting Guide

    Installation and Setup

    Please see our new CivitAI article

    Installation and Setup Guide

    On first use

    • select the XL models and VAE (do not use SD 1.5 models)

    • select an upscale model

    • add a default image in each of the Load Image nodes (purple nodes)

    • add a default image batch in the Load Image Batch node (on Intermediate and Advanced templates)

      • e.g. E:\Comfy Projects\default batch

      • it should contain one png image, e.g. image.png

    • add default LoRAs or set each LoRA to Off and None (on Intermediate and Advanced templates)

    • add an XL ControlNet model (on Intermediate and Advanced templates)

    • set the batch-size parameter in XL Aspect Ratio (e.g. 1, 2, 4)

    • set the filename_prefix in Save Image to your preferred sub-folder

    • set control_after_generate in the sampler to randomize

    • do a test run

    • save a copy to use as your template

    You can use any SDXL checkpoint model for the Base and Refiner models. Please don't use SD 1.5 models unless you are an advanced user.

    Things to try (for beginners)

    • try different XL models in the Base model

    • try -1 or -2 in CLIP Set Last Layer

    • try different styles on the prompt

    • try different sampling methods and schedulers in the Sampler

    • try different numbers of steps in the Sampler (e.g. 20, 30, 40)

    • try different cfg values in the Sampler

    • try different base_ratios in the Sampler (e.g. 075, 0.8, 1.0)

    • try using Img2Img

    A and B Template Versions

    A-templates

    • these templates are the easiest to use and are recommended for new users of SDXL and ComfyUI

    • they are also recommended for users coming from Auto1111

    • the templates produce good results quite easily

    • they will also be more stable with changes deployed less often

    B-templates

    • these templates are 'open beta' WIP templates and will change more often as we try out new ideas

    • they are a bit more advanced and so are not recommended for beginners

    • they include new SDXL nodes that are being tested out before being deployed to the A-templates

    • the default presets are preset 1 and preset A

    Simple SDXL Template Features

    • Txt2Img or Img2Img

    • batch size on Txt2Img and Img2Img

    • SDXL apect ratio selection

    • base and refiner models

    • separate prompts for positive and negative styles

    • SDXL mix sampler

    • Hires Fix

    Intermediate SDXL Template Features

    • Txt2Img or Img2Img

    • batch size on Txt2Img and Img2Img

    • SDXL apect ratio selection

    • base and refiner models

    • separate prompts for potive and negative styles

    • SDXL mix sampler

    • Hires Fix

    • ControlNet zoe depth

    • 6 LoRA slots (can be toggled On/Off)

    Advanced SDXL Template Features

    • Txt2Img or Img2Img

    • Img2Img batch

    • batch size on Txt2Img and Img2Img

    • image padding on Img2Img

    • SDXL apect ratio selection

    • base and refiner models

    • separate prompts for positive and negative styles

    • SDXL mix sampler

    • Hires Fix

    • 4 ControlNet options

      • canny

      • open pose

      • zoe depth

      • softedge dexined

    • 6 LoRA slots (can be toggled On/Off)

    • post processing options

    Template A

    Template B

    Tips

    • each optional component can be bypassed using logic switches (red nodes)

    • the default setting on all switches is Off (1)

    • it is not recommended to use SD1.5 models in the SDXL templates

    • some models don't need a refiner so you can set the base_ratio in the sampler to 1 for these

    • set Preview method: Auto in ComfyUI Manager to see previews on the samplers

    Resources

    https://upscale.wiki/wiki/Model_Database

    https://github.com/RockOfFire/ComfyUI_Comfyroll_CustomNodes

    https://github.com/SeargeDP/SeargeSDXL

    Change History

    • 1.1

      • Advanced Template added

        • A and B versions

      • new nodes

        • CR Aspect Ratio SDXL

        • CR SDXL Prompt Mixer

        • CR SDXL Style Text

        • CR SDXL Base Prompt Encoder

        • CR Img2Img Process Switch

        • CR Hires Fix Process Switch

        • CR LoRA Stack

        • CR Apply LoRA Stack

        • CR Latent Batch Size

        • CR Halftone Grid

    • 2.0

      • Fix for missing Seed node

      • new nodes

        • CR Seed

        • CR Batch Process Switch

        • CR SDXL Prompt Mix Presets

      • CR SDXL Prompt Mix Presets replaces CR SDXL Prompt Mixer in Advanced Template B

    • 2.1

      • Updated SDXL sampler

      • Updated Mile High Styler

      • new nodes

        • CR Upscale Image

    Advanced stuff starts here - Ignore if you are a beginner

    These are used on SDXL Advanced SDXL Template B only

    SDXL Prompt Presets

    • the prompt presets influence the conditioning applied in the sampler

    • there are currently 5 presets

    • it is planned to add more presets in future versions

    • the detailed preset mappings are provided in the Legacy Mappings section of the article: https://civarchive.com/articles/1835

    SDXL Conditioning Presets

    • the conditioning presets also influence the conditioning applied in the sampler

    • there are currently 3 experimental presets

    • the default is preset A

    Credits

    The prompts used for testing the templates were borrowed from pictures shared on the awesome AI Revolution discord sever.

    https://discord.gg/6PZXWP739k

    There is a thriving ComfyUI community on AI Revolution.

    The templates owe a lot to the great work done by Searge on developing new SDXL nodes and advanced workflows.

    Description

    FAQ

    Comments (19)

    wegwuerfelSep 27, 2023
    CivitAI

    I've got a question regarding Base XL vs Refiner XL models: I understand that SDXL was distributed with this Base/Refiner split, but many of the newer XL models distributed on civit don't have this split, and many even advise against using a (or the default) refiner model.
    The problem now is that this (and many other) ComfyUI workflow expect values in both the Base and Refiner field, and don't work if left empty or disconnected.
    What am I supposed to do in these situations?

    PurbuzOct 1, 2023· 1 reaction
    CivitAI

    Hello, i got some errors:

    When loading the graph, the following node types were not found:

    CR Prompt Text

    I replaced Positive Promte and Negative Prompt with CR SDXL Prompt Mix Preset

    PrimaveriOct 12, 2023
    CivitAI

    not shure if those worflows work with SDXL models it keeps getting errors like: Error occurred when executing IPAdapter: invalid load key, '<'.

    civitayerohOct 12, 2023
    CivitAI

    @akatsuzi thanks for putting this together!

    I'm not sure where to log something like this but I came across a weird bug trying out the advanced template. In the Post Process section > Image Style Filter > change style to "sci-fi". Under the "Styled Image" preview it created 2000+ 2px wide slivers. If I tried to export the styled image it would also export as 2000+ individual sliver images to the export folder. Not sure if it happens with any other styles but just happened to observe this behavior.

    bybloshexOct 16, 2023
    CivitAI

    If I try to use the poser at strength 1.0 the entire image becomes magenta shaded in all 3 previews and the final.

    throwalassoOct 16, 2023
    CivitAI

    local variable 'clear counter' was referenced before assignment.. seems to be a problem with the image batch node

    throwalassoOct 16, 2023· 1 reaction
    CivitAI

    Also, in the intermediate template, the "image canny filter" comes up with a missing image error

    aidarkwinOct 30, 2023· 3 reactions
    CivitAI

    If I switch ControlNet to ON, I get this error:

    An error occurred while executing SeargeSDXLSamplerV3: All tensors were expected to be on the same device, but at least two devices were detected, cpu and cuda:0! (when checking the mat1 argument in the wrapper_CUDA_addmm method)
    C41NDec 2, 2023
    CivitAI

    Error occurred when executing Load Image Batch: cannot unpack non-iterable NoneType object File "E:\Ai\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Ai\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Ai\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 5092, in load_batch_images image, filename = fl.get_image_by_id(index) ^^^^^^^^^^^^^^^

    endrbroDec 10, 2023
    CivitAI

    How to resize output image?

    DobkeyDec 17, 2023
    CivitAI

    I've followed all the steps over and over, spend 4 hours on troubleshooting and no matter, my road ends with an error called "Failed to validate prompt for output 505: * SDXLPromptStyler 536: - Value not in list: Type 'sai-base' not in (list of length 107).

    I've tried everything

    OtakuFraJan 3, 2024
    CivitAI

    Hello Suzie, thx a lot for your work, these workflows are fantastic. I get an error when i change the "Color tint" filter setting to lightgray or darkgrey.

    Error occurred when executing CR Color Tint: 'lightgray' File "D:\Stability-Matrix\Packages\ComfyUI\execution.py", line 154, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\Stability-Matrix\Packages\ComfyUI\execution.py", line 84, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\Stability-Matrix\Packages\ComfyUI\execution.py", line 77, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "D:\Stability-Matrix\Packages\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes\nodes\nodes_graphics_filter.py", line 87, in color_tint scale_filter = mode_filters[mode].view(1, 1, 1, 3).to(image.device)

    And when i switch the node with another color filter i got very poor quality of image. Any suggestion please ?

    Happy new year =)

    jodyJan 18, 2024
    CivitAI

    These are amazing! I would love to use them as an API, but when i save in API format so much of the workflow is lost. Do you have any idea how I could use the intermediate one with the API?

    zeonmaxtixFeb 2, 2024
    CivitAI

    I am getting disconnect on google colab when I turn on controlnet

    Up_punchingtonFeb 4, 2024
    CivitAI

    How can i use these without the refiner or controlnet? I want to use the advanced templates but I'm not working with controlnet, but the whole thing throws an error if I bypass refiner or controlnet.

    ElfynLiedApr 10, 2024
    CivitAI

    Hi, Im getting this error

    When loading the graph, the following node types were not found:

    SeargeSDXLPromptEncoder

    SeargeSamplerInputs

    SeargeSDXLSamplerV3

    My Custom Nodes list is cuurently:
    1.ComfyUI_Comfyroll_CustomNodes

    2.comfyui_controlnet_aux

    3.ComfyUI-Manager

    4.SeargeSDXL

    any ideas?

    4702032Aug 26, 2024
    CivitAI

    I'm going to assume these don't work with Pony, as no matter what Pony model I use all I get is just garbled noise.

    bobmartienFeb 25, 2025
    CivitAI

    Great work.
    I was wondering if you were planning to do a workflow SDXL refined with FLUX ?

    DirtyOldDruidJun 20, 2025
    CivitAI

    I don't understand how this is supposed to work. On Intermediate I have the Process Switch set to txt2img, I'm just trying to generate txt2img from a prompt. So why do I have to load two unrelated images? And why is the output just outlines of those images and nothing at all to do with my text prompt?

    Workflows
    SDXL 1.0

    Looks like we don't have an active mirror for this file right now.

    CivArchive is a community-maintained index — we catalog mirrors that volunteers upload to HuggingFace, torrents, and other public hosts. Looks like no one has uploaded a copy of this file yet.

    Some files do get recovered over time through contributions. If you're looking for this one, feel free to ask in Discord, or help preserve it if you have a copy.

    Details

    Downloads
    26,284
    Platform
    CivitAI
    Platform Status
    Deleted
    Created
    9/22/2023
    Updated
    7/24/2025
    Deleted
    7/24/2025

    Files

    sdxlWorkflowTemplates_v21.zip

    Mirrors