Prerequisites for Using SDXL
To get started with SDXL in Automatic1111, you'll need:
- A working installation of AUTOMATIC1111 (compatible with Windows 10/11 and Mac M1/M2 chips)
- A powerful computer, ideally with an 8GB GPU or better
- If your hardware is lacking, consider cloud-based solutions
Updating Your Existing Installation
If you installed the WebUI before July 24, 2023 (pre-version 1.5.0), update it:
- Navigate to your installation directory (
\stable-diffusion-webui
) - Run the command:
git pull
- The update should complete quickly
Adding SDXL 1.0 to Automatic1111
Follow these steps for both Mac and Windows:
- Download the base model and Refiner
- Place both files in
/stable-diffusion-webui/models/Stable-diffusion
- Launch WebUI or refresh the model list
- Select the new models (
sd_xl_base
andsd_xl_refiner
)
Download Links:
Using SDXL
Basic Text-to-Image Generation:
- Choose SDXL 1.0 base model from the Stable Diffusion Checkpoint menu
- Input your prompt (and optional negative prompt)
- Set image size to 1024x1024 or similar ratios
- Click Generate
Example Prompt:
"A hyper-realistic lion in a suits looking serious. peaky blinders environment."
Negative Prompt:
"sketch, ugly, blur, text, logo, monochrome, bad art, cut off, low contrast, underexposed, overexposed, beginner, amateur"
Settings: 1024x1024, CFG Scale: 7, Steps: 20, Sampling Method: Euler A
Applying the Refiner in Text-to-Image
With Automatic1111 version 1.6.0 or later:
- Click "Refiner" under Sampling Method
- Select the Refiner checkpoint
- Set when the Refiner activates (e.g., 0.8 for 16 base steps, 4 Refiner steps in a 20-step generation)
Using the Refiner in Image-to-Image
To enhance a generated image:
- Send your image to img2img
- Select the Refiner model
- Adjust denoising strength (0.1 to 0.3)
- Keep prompts unchanged and generate
Experiment with different denoising strengths for varied results.
Utilizing Predefined Styles
Install StyleSelectorXL:
- Open the Extensions tab
- Choose "Available"
- Load from the default URL
- Find and install "Style Selector for SDXL"
- Apply changes and restart the UI
Using StyleSelectorXL:
- Find the SDXL Styles window in img2img settings
- Enable Style Selector
- Choose a style
- Generate your image
Experiment with various styles like Anime, Stained Glass, Retro Arcade, Disco, Grunge, and Film Noir.
Advancing with SDXL and Automatic1111
Recent updates make SDXL as user-friendly as earlier versions, with improved rendering and high-resolution capabilities. While technically advanced, SDXL's prompt understanding remains similar to previous models.
For inspiration, explore prompt engineering tutorials or use AI assistants to help craft portrait prompts. Before diving in, check out sample prompts for SDXL and follow relevant social media accounts for tips and new developments.
Top comments (0)