SDXL Refiner Prompt

Enhance SDXL images using refiner models.

Input

Describe the image. The base model draws it from this prompt.

The prompt the refiner uses to add detail in the last steps; usually the same as the prompt, or a more detailed version of it.

SDXL works best at about 1 megapixel, e.g. 1024×1024 or 1344×768.

SDXL works best at about 1 megapixel, e.g. 1024×1024 or 1344×768.

Advanced settings

How closely to follow the prompt.

Default: 8

What to avoid in the result.

The step where the refiner takes over from the base model. Keep it below Steps; about 80% of Steps works well.

Default: 20

Leave empty for a new result each run. Enter a number to repeat one.

Total sampling steps, shared by the base and the refiner.

Default: 25

Output
Output
Example

Try an example

About this workflow

This ComfyUI workflow is designed to enhance images generated by the Stable Diffusion XL (SDXL) model using refiner models. It leverages a series of nodes to create a refined image output that is both high-quality and visually appealing. The workflow begins with loading the base SDXL model using the CheckpointLoaderSimple node, which is configured to automatically apply optimal settings for the selected SD model version. The workflow then proceeds to generate an initial latent image using the EmptyLatentImage node, which serves as the canvas for further refinement.

The core of this workflow involves the use of the CLIPTextEncode node to interpret text prompts, which guide the image generation process. The KSamplerAdvanced node introduces controlled noise into the image, allowing the model to iteratively refine and enhance the visual output. After the image has been refined, the VAEDecode node converts the latent image data into a visible format, ready for final adjustments. The SaveImage node then allows users to save the enhanced image in PNG format.

This workflow is particularly useful for artists and designers who require high-quality, refined images for their projects, as it combines the power of SDXL models with advanced refinement techniques.

Questions & answers