diffusion-xl / DOCS.md
adamelliotfields's picture
Clean up
3e63709 verified

A newer version of the Gradio SDK is available: 5.9.1

Upgrade

Usage

TL;DR: Enter a prompt or roll the 🎲 and press Generate.

Prompting

Positive and negative prompts are embedded by Compel. See syntax features to learn more.

Weighting

Use + or - to increase the weight of a token. The weight grows exponentially when chained. For example, blue+ means 1.1x more attention is given to blue, while blue++ means 1.1^2 more, and so on. The same applies to -.

Groups of tokens can be weighted together by wrapping in parentheses and multiplying by a float between 0 and 2. For example, (masterpiece, best quality)1.2 will increase the weight of both masterpiece and best quality by 1.2x.

Models

Scale

Rescale up to 4x using Real-ESRGAN with weights from ai-forever. Necessary for high-resolution images.

Advanced

DeepCache

DeepCache caches lower UNet layers and reuses them every n steps. Trade quality for speed:

  • 1: no caching (default)
  • 2: more quality
  • 3: balanced
  • 4: more speed

Refiner

Use the ensemble of expert denoisers technique, where the first 80% of timesteps are denoised by the base model and the remaining 80% by the refiner. Not available with image-to-image pipelines.