CivArchive
    Searge-SDXL: EVOLVED v4.3.2 - Optimized Workflow for ComfyUI - 2023-11-13 - txt2img, img2img, inpaint, revision, controlnet, loras, FreeU v1 & v2, ... - v2.1
    Preview 1815865
    Preview 1815880
    Preview 1815870
    Preview 1815871
    Preview 1815873
    Preview 1815874
    Preview 1815875
    Preview 1815876
    Preview 1815883

    Searge-SDXL: EVOLVED v4.3.2

    Version 4.x is here.

    I made a convenient install script that can install the extension and workflow, the python dependencies, and it also offer the option to download the required models.

    Please read the install instructions in the readme file for more information about the install script and how to use it.

    Description

    Some custom nodes for ComfyUI and an easy to use SDXL 1.0 workflow. A detailed description can be found on the project repository site, here: Github Link

    Installing

    Detailed install instruction can be found here: Link to the readme file on Github

    Usage Notes

    The workflow is in the workflow folder, please load it from the JSON files to make sure you are using the latest versions of it.

    The images in the examples folder have workflows embedded.

    How to use this workflow

    Here is an amazing Youtube video that Nerdy Rodent made about version 3.4 of the workflow. Many things have changed in v4.0 but the basics still apply. And while you are watching it, don't forget to subscribe to the channel.

    Link to the Nerdy Rodent video

    Updates

    What's new in v4.3.2?

    This is a minor update to make the workflow and custom node extension compatible with the latest changes in ComfyUI.

    What's new in v4.3.1?

    This is a minor update to make the workflow and custom node extension compatible with the latest changes in ComfyUI.

    What's new in v4.3?

    This update added support for FreeU v2 in addition to FreeU v1.

    New Features

    • Support for FreeU v2 has been added and is included in the v4.3 workflow

    • Added more presets for FreeU and a selector to switch between v1 and v2

    • Updated the example images to embed the v4.3 workflow

    What's new in v4.2?

    This update contains bug fixes that address issues found after v4.0 was released.

    Bug Fixes

    • A recent change in ComfyUI conflicted with my implementation of inpainting, this is now fixed and inpainting should
      work again

    New Features

    • Support for FreeU has been added and is included in the v4.2 workflow

    • Note: the images in the example folder are still embedding v4.1 of the workflow, to use FreeU load the new
      workflow from the .json file in the workflow folder

    What's new in v4.1?

    This update contains bug fixes that address issues found after v4.0 was released.

    Bug Fixes

    • The high resolution latent detailer was not properly set up in the processing pipeline and did nothing

    • The debug printer node was broken - I didn't notice that because it was not connected in any of the v4.0 workflows

    • A bug related to generating with batch sizes larger than 1 has been fixed, it's now working properly

    Other Changes

    • The images in the examples folder have been updated to embed the v4.1 workflow

    What's new in v4.0?

    • A complete re-write of the custom node extension and the SDXL workflow

    • Highly optimized processing pipeline, now up to 20% faster than in older workflow versions

    • Support for Controlnet and Revision, up to 5 can be applied together

    • Multi-LoRA support with up to 5 LoRA's at once

    • Better Image Quality in many cases, some improvements to the SDXL sampler were made that can produce images
      with higher quality

    • Improved High Resolution modes that replace the old "Hi-Res Fix" and should generate better images

    • ... many more things, too many to mention them all here

    Description

    The brand new update to version 2.1 of my custom node extension and workflows. Starting from v2.x the extension and workflows are released together in one file instead of having separate downloads.

    This update contains bug fixes and improvements for the extension, support to use LoRA, a HighRes Fix and improved quality of the generated images.

    FAQ

    Comments (35)

    9ballAug 1, 2023
    CivitAI

    Nice work! Thanks! What prompt did u use for the guy in the blue suit? I've been trying to make some older distinguished looking gentlemen myself and haven't faired well.

    countlippeAug 1, 2023· 1 reaction
    CivitAI

    Not sure others have this, but in 2.1 the 'lora_name' field is fixed for me. It loads 'sd_xl_offset_example-lora_1.0.safetensors' by default (which I don't have) but will not let me browse (left or right or drop down) through LoRAs I do have.

    GibboAug 1, 2023· 2 reactions

    same thing, can't choose the loras i saved!

    NexustarAug 1, 2023· 3 reactions

    Same. It is a fixed value and not showing the same list as the standard LoadLoRA node.

    Temp fix: Save your config.json file, open it in notepad++. Search and replace sd_xl_offset_example-lora_1.0.safetensors with SDXL\\sd_xl_offset_example-lora_1.0.safetensors (or whatever you called it) - note double backslash, then reload in ComfyUI.

    countlippeAug 1, 2023

    @Gibbo @Nexustar thanks for confirming

    searge
    Author
    Aug 1, 2023

    Did you install the loras in the correct directory? And if you copied them while Comfy was running you have to press the Refresh button for them to show up as selection.

    NexustarAug 1, 2023

    @searge Which LoRA path is it looking for? The standard LoadLoRA node is finding them in the paths defined in extra_model_paths.yaml without issue.

    countlippeAug 1, 2023

    @searge Yes I have SDXL installed along with other LoRAs. The field only recognises the offset example; If I click to get the drop down, or the arrows to browser through others, it cannot see any of my other LoRAs installed in the same (correct) directory.

    duhzatAug 1, 2023

    fresh install of ComfyUI fixed it for me

    searge
    Author
    Aug 1, 2023

    @duhzat Awesome, good to know that it might be a bug in an older Comfy version, because then I don't have to fix anything to make it work :)

    duhzatAug 1, 2023

    @searge update, actually not fixed. got an error in the old version. Throwing Loras it in the wrong folder (checkpoints) on purpose got rid red of error message, but others kept coming. Old install might have been broken anyway. So now same problem as everybody else. l'll run with the tempfix Nexustar suggested. Thx for the awesome work anyway.

    GrimsantaAug 1, 2023

    I use the portable ComfyUI and deleted the entire folder and put a fresh portable in. Still will only allow the sd_xl_offset_example-lora_1.0.safetensors to be used and shows no other Loras. I am able to select all Loras via the LoraLoader though. So ComfyUI is seeing them but for some reason your LoRA Model node will not show any of them, other than the sd_xl LoRA.

    countlippeAug 2, 2023

    Mine was a fresh install as of 31 July. Did a git pull after I noticed the bug on the LoRAs which didn't resolve anything. If I hand edit the JSON, I can manually insert the names of LoRAs I have and they work fine. Indicates that ComfyUI can load and use them without issue and that they are installed in the correct location.

    ideekerAug 2, 2023

    I had the same problem, I solved it by right clicking on the node and selecting convert_loraname to imput, something like that, and from there I can then select the lora

    countlippeAug 2, 2023

    @ideeker Thanks,. I'll play around and see if I can replicate.

    GrimsantaAug 2, 2023

    @ideeker I passed this on in more detail on the git page under an issue that someone had already started.

    GibboAug 1, 2023
    CivitAI

    the 'lora_name' field is fixed for me. It loads 'sd_xl_offset_example-lora_1.0.safetensors' by default and can't choose any other lora i have!

    searge
    Author
    Aug 1, 2023

    Did you install the loras in the correct directory? And if you copied them while Comfy was running you have to press the Refresh button for them to show up as selection.

    ZirnusAug 1, 2023

    I also have the same problem. I restart the ui. Only shows the example lora

    kapper_bearAug 2, 2023

    I also have this problem, and I even tested it with having the loras both in Comfy's own directory and the path-linked A1111 directory. I can change the control_after value, but not the lora itself.

    ideekerAug 2, 2023· 1 reaction

    I had the same problem, I solved it by right clicking on the node and selecting convert_loraname to input, something like this, and from there I can then select the lora

    kapper_bearAug 2, 2023

    @ideeker It was Convert to widget, that that seems to have helped indeed! Thanks!

    cromeAug 1, 2023
    CivitAI

    How can I make multiple batch? Not the size batch...because If I insert multiple batch count in extra option it run only one image

    Thanks

    searge
    Author
    Aug 1, 2023

    If you set a higher batch count in extra options and it only runs one batch, I assume you press ctrl+enter. Try pressing the Queue Prompt button instead.

    TetsuooAug 2, 2023
    CivitAI

    It's getting out of hands. I've been following since 2 or 3 versions, in ComfyBox it's getting slower and slower.... until last version where it crashed on me (Out Of Memory) when I tried a 4x batch.
    With the default workflow, of course lots of things are missing but I can make a 4x batch in less than 2min... well, it was nice while it lasted

    searge
    Author
    Aug 2, 2023

    Does it not work with lower batch sizes? It's always an alternative to use more batches with less images each.

    tinyauAug 2, 2023· 1 reaction
    CivitAI

    Nice work, thanks. Is there any chance to incorporate face restore?

    searge
    Author
    Aug 2, 2023

    Maybe in the future. So far I had good results with the improved hires fix that's coming in the next update of the workflows. So there was no need for face restore. But I'll put it on my maybe-todo-list for now :)

    k1ngcursesAug 2, 2023
    CivitAI

    i keep on getting black images for some reason

    searge
    Author
    Aug 2, 2023

    do you get any error messages or warnings in the console window?

    k1ngcursesAug 3, 2023

    @searge Setting up MemoryEfficientCrossAttention. Query dim is 768, context_dim is 1280 and using 12 heads.

    Setting up MemoryEfficientCrossAttention. Query dim is 768, context_dim is None and using 12 heads.

    Setting up MemoryEfficientCrossAttention. Query dim is 768, context_dim is 1280 and using 12 heads.

    model_type EPS

    adm 2560

    making attention of type 'vanilla-xformers' with 512 in_channels

    building MemoryEfficientAttnBlock with 512 in_channels...

    Working with z of shape (1, 4, 32, 32) = 4096 dimensions.

    making attention of type 'vanilla-xformers' with 512 in_channels

    building MemoryEfficientAttnBlock with 512 in_channels...

    missing {'cond_stage_model.clip_g.transformer.text_model.embeddings.position_ids'}

    DDIM Sampler: 100%|████████████████████████████████████████████████████████████████████| 20/20 [00:38<00:00, 1.95s/it]

    DDIM Sampler: 100%|██████████████████████████████████████████████████████████████████████| 5/5 [00:05<00:00, 1.14s/it]

    making attention of type 'vanilla-xformers' with 512 in_channels

    building MemoryEfficientAttnBlock with 512 in_channels...

    Working with z of shape (1, 4, 32, 32) = 4096 dimensions.

    making attention of type 'vanilla-xformers' with 512 in_channels

    building MemoryEfficientAttnBlock with 512 in_channels...

    C:\AI\ComfyUI_windows_portable\ComfyUI\nodes.py:1228: RuntimeWarning: invalid value encountered in cast

    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))

    C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\torch\_utils.py:776: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()

    return self.fget.__get__(instance, owner)()

    Prompt executed in 80.46 seconds

    DarkCoverAug 3, 2023

    Yep having this same issue. first I loaded in the JSON file but it showed error related to Upscale. But then used the cat image( text to image) and loaded in a workflow. It atleast started the work flow but gave me black pictures.

    k1ngcursesAug 5, 2023

    @DarkCover still no idea to fix it?

    DarkCoverAug 5, 2023

    @k1ngcurses I was able to fix the black images but still can't run the nodes without the upscale(which takes like 30min).

    So what I initially I did was update the nodes from the comfymanager.( Which is what I think is the cause of the problem.)

    So what I did is download the nodes from here and then I copy pasted it in the custom node folder.

    Then replaced existing files. And that worked for me.

    But still the issue that persists for me is that I can't use this without the upscale( By disconnecting the upscale nodes). Which still gives me error. other than that text to image still works.

    k1ngcursesAug 6, 2023· 1 reaction

    @DarkCover ahh okay thanks bro

    Workflows
    SDXL 1.0

    Details

    Downloads
    1,381
    Platform
    CivitAI
    Platform Status
    Available
    Created
    7/31/2023
    Updated
    8/13/2026
    Deleted
    -

    Files

    seargeSDXLEVOLVEDV432OptimizedWorkflowForComfyui_v21.zip