Advanced
AI Image Generation
12 min read

Stable Diffusion Parameter Guide

Understanding Key Parameters

Several critical parameters determine image quality in Stable Diffusion. CFG Scale (Classifier Free Guidance) determines how strictly the AI follows the prompt; values between 7-12 are ideal for most cases. Low values (1-5) produce more creative but prompt-deviating results, while high values (15+) can produce oversaturated and artifacted images. Sampling Steps determine how long the image is processed; 20-30 steps are generally sufficient, with 50+ steps providing marginal improvement.

Sampler Selection

Each sampler produces different visual characteristics. DPM++ 2M Karras is the most popular choice for high-quality and consistent results. Euler A is useful for creative and diverse outputs but can show seed-based inconsistency. DDIM is suitable for more deterministic results and interpolation. UniPC is a standout option as of 2023 for its speed-quality balance. For sampler experimentation, comparing different samplers with the same seed and prompt is recommended.

Model and LoRA Usage

The power of Stable Diffusion comes from different checkpoint models and LoRA (Low-Rank Adaptation) weights. Civitai.com hosts thousands of user-trained models and LoRAs. For realistic photography, you can use Realistic Vision or epiCRealism models; for anime style, ToonYou or Counterfeit models. LoRAs fine-tune the model for specific characters, styles, or concepts; for example, used to reproduce an artist's style or a specific character.

Precise Control with ControlNet

ControlNet is an extension that revolutionizes visual production. With Canny edge detection, you can preserve the main lines of an image and generate new content. For pose control, you can lock a character's body position using OpenPose. With a depth map, you can apply style transfer while preserving the depth structure of the image. With inpainting, you can change specific parts of an image while preserving the rest. Combining these tools gives you complete control over human anatomy, architectural consistency, and composition.

Tags:
#stable-diffusion
#parametre
#cfg
#sampler
#advanced
#automaticA111

Related Guides

View all