Sign In

SDXL - OUTPAINT

7

SDXL - OUTPAINT

Step-by-Step Guide Series:
SDXL - OUTPAINT Workflow

This article accompanies this workflow: link

This guide is intended to be as simple as possible, and certain terms will be simplified.

Workflow description :

This workflow allows you to extend an image. It is optimized to integrate all metadata for simplified online publishing.
It integrates an upscaler/sampler which, although it takes longer than a classic upscaler, allows for much better quality.

Prerequisites :

đź“‚Files :

  • An SDXL model : like this one
    in ComfyUI/models/checkpoints/

  • An upscale model (optional) : like this one
    in ComfyUI/models/upscale_models/

  • As many LoRAs as you like (optional) : like this one
    in ComfyUI/models/loras/

  • For add detail fonction :

📦Custom Nodes :

Don't forget to close the workflow and open it again once the nodes have been installed.

Usage :

Capture d’écran 2025-10-21 160517.png

In this new version of the workflow everything is organized by color:

  • Green is what you want to create, also called prompt,

  • Red is what you dont want,

  • Yellow is all the parameters to adjust the image,

  • Blue are the model files used by the workflow,

  • Purple is for LoRA.

We will now see how to use each node:

Write what you want in the “Positive” node :

image.png

Write what you dont want in the “Negative” node :

image.png

Select base image :

image.png

Choose a scheduler and number of steps :

image.png

I recommend normal or karras and between 30 and 50. The higher the number, the better the quality, but the longer it takes to get an image.

Choose the guidance level :

image.png

I recommend to start at 5. The lower the number, the freer you leave the model. The higher the number, the more the image will resemble what you “strictly” asked for.

Choose how many pixels you want to enlarge each side of the image:

image.png

Choose a sampler :

image.png

I recommend euler or dpmpp_2m. Usually, model designers recommend a sampler in their descriptions.

Define a seed or let comfy generate one:

image.png

The seed is the unique identification number of the random starting point of an image. With exactly the same settings (prompt, step, etc.) changing the seed allows you to obtain a new image and not exactly the same one.

Add how many LoRA you want to use, and define it :

image.png

LoRAs are sort of "mini models" that are added to a base model. They can be used to create certain characters or styles. If you dont know what is LoRA just dont active any.

Choose your model:

image.png

There are many models available on Civitai. Choose the one that best suits what you want to generate.

Activate optional functions : (optional)

image.png

Select an upscaler model : (optional)

image.png

I personally use RealESRGAN_x4plus.pth.

Select upscale ratio : (optional)

image.png

This is how much the resolution of your base image will be multiplied by. Keep in mind that the higher this ratio, the greater the risk of quality loss.

Select an BBOX detector model : (optional)

image.png

Here you can choose the detection model. Typically you will use the face or hand detection model.

Now you're ready to create your image.

Just click on the “Queue” button to start:

Once rendering is complete, the image appears in the “image viewer” node.

If you have enabled upscaling, a slider will show the base image and the upscaled version.

image.png

Suggestion

As in this example, you can see a demarcation between the base image and what's being added. But we have tools to modify parts of the image, right?

Let's use the "inpaint" workflow and try to make this line disappear:

image.png

After a few more INPAINTs I get a much cleaner result:

2025-10-21-1810_254582796660942_Upscale.png

Some additional information:

Organization of recordings:

All generated files are stored in comfyui/output/SDXL/YYYY-MM-DD.

Depending on the options chosen you will find:

  • "YYYY-MM-DD-HH-MM_XXXXXXXXXX_Original" the basic file,

  • "YYYY-MM-DD-HH-MM_XXXXXXXXXX_Upscale" the upscaled.

This guide is now complete. If you have any questions or suggestions, don't hesitate to post a comment.

7