SDXLRefiner<T>

Models & Types · AiDotNet.Diffusion.TextToImage

SDXL Refiner model for enhancing generated images.

For Beginners

Think of the refiner as a “finishing touch” step:

Without refiner: Base image (good structure, okay details)

With refiner: Refined image (same structure, enhanced details like texture, sharpness)

The refiner uses lower noise levels (typically 0.2-0.4 denoising strength) to preserve the overall composition while enhancing fine details.

How It Works

The SDXL refiner is a specialized model trained to enhance the fine details of images generated by the SDXL base model. It operates in the latent space and is designed to work with partially denoised latents.

Constructors

Constructor Summary
SDXLRefiner(UNetNoisePredictor<T> refinerUNet, IVAEModel<T> vae, INoiseScheduler<T> scheduler, IConditioningModule<T> conditioner, int? seed) Initializes a new SDXL refiner.

Methods

Method Summary
Tensor<T> Refine(Tensor<T> image, string prompt, string negativePrompt, int numInferenceSteps, double denoiseStrength, int? seed) Refines an image by enhancing details.