CivArchive
    SDXL img2img (automatic aspect ratio) | ComfyUI workflow - v1.0
    Preview 2063485
    Preview 2063483
    Preview 2149125
    Preview 2149131

    SDXL conditioning can contain image size! This workflow takes this into account, guiding generation to:

    • Look like higher resolution images

    • Keep objects in frame

    • Guide image composition to make sense

    Installation and dependencies

    1. Install WAS Node Suite custom nodes;

    2. Instal ComfyMath custom nodes;

    3. Download and open this workflow.

    How to use

    1. Select image for img2img;

    2. Choose to resize or not;

    3. (optional) Choose Conditioning Scale. It can make your output look like bigger, higher resolution image;

    4. Queue Prompt.

    Pro Tip: You can set denoise to 1.0 to use the workflow as usual txt2img, but with size guiding benefits.

    Note

    I made some research and find out that v1.0 version of the workflow was total bullshit ๐Ÿ˜…. If you downloaded previous version, don't use it. Better update.

    Check out my other workflows

    Description

    Version 1.0 of 17.08.2023

    FAQ

    Comments (7)

    alxNov 27, 2023
    CivitAI

    thank you for this most excellent workflow

    1872309Dec 13, 2023
    CivitAI

    I install and get this error message:

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

    Constant Number

    Number Input Switch

    Number Operation

    Image Input Switch

    Number to Int

    Debug Number to Console

    Image Size to Number

    Logic Boolean

    and also in cmd,

    ModuleNotFoundError: No module named 'numba'

    Some help??

    LatterdayApr 4, 2024

    Those are custom nodes you don't have that are used in the workflow.

    Google each one and figure out which custom node pack they come from. Then get Comfyui Manager and use it to add those custom nodes.

    Postpos
    Author
    Apr 4, 2024ยท 1 reaction

    You don't need to Google anything. All the instructions and links are in the description.

    In this workflow you only need WAS Node Suite.

    pixelgriddsterMay 8, 2024
    CivitAI

    I try to run this and I always get this error

    Error occurred when executing Number Input Switch: WAS_Number_Input_Switch.number_input_switch() got an unexpected keyword argument 'boolean_number' File "D:\comfyui\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    Postpos
    Author
    May 8, 2024

    There was a strange update of WAS Node Suite about two month ago, that replaces boolean_number inputs with proper BOOLEAN inputs, but forgets to replace boolean_number outputs. You can recreate Value Input Switch nodes and use this workaround: https://github.com/WASasquatch/was-node-suite-comfyui/issues/364#issuecomment-2041367119

    But honestly, it's just easier to use something like Comfy Roll to choose resolution manually.

    I think I'll remake this workflow someday, but not this week.

    Postpos
    Author
    May 19, 2024

    @pixelgriddster Done! New version is here, and it's actually better.

    Workflows
    SDXL 1.0

    Details

    Downloads
    1,614
    Platform
    CivitAI
    Platform Status
    Available
    Created
    8/16/2023
    Updated
    5/13/2026
    Deleted
    -

    Files

    sdxlImg2imgAutomaticAspect_v10.zip

    Mirrors