Stable Diffusion is an AI system that generates images from text prompts. It can produce photorealistic images when provided with detailed prompts that specify photographic qualities. Crafting effective prompts is key to getting good results.
This article provides an overview of how to write Stable Diffusion prompts for photorealistic images. It covers:
- What makes an image photorealistic
- Prompt structure and formatting
- Key terms to include
- Prompt examples
- Useful resources
What Makes an Image Photorealistic
A photorealistic image mimics the visual qualities of a real photographic image. Key attributes include:
- Sharp focus and clarity of detail
- Accurate perspective and depth
- Lifelike textures, lighting, and shadows
- Believable proportions and angles
To generate convincingly realistic images, Stable Diffusion prompts should describe these photographic traits.
Structure and Format Photorealistic Prompts
Effective prompts provide both positive and negative guidance.
Positive guidance specifies what you want the image to contain:
- Subject matter
- Setting/scene details
- Photographic and artistic style
Negative guidance specifies what you want to avoid:
- Unrealistic elements
- Technical flaws
- Undesirable content
Formatting prompts with line breaks and commas improves results by making the structure clear for the AI.
Key Terms for Photorealistic Prompts
Include specific terms to instruct Stable Diffusion to render images realistically. Useful terms include:
Lighting: soft lighting, bright environment, studio lighting, ambient light
Composition: shallow depth of field, front view, profile view, close-up view
Image Quality: extremely detailed, sharp focus, high resolution
Artistic Style: photorealistic, photographic
Subject Details: lifelike, detailed eyes, detailed skin/texture
Technical Details: Canon 5D Mark IV, 50mm lens
Examples of Photorealistic Prompts
Here are some prompt examples that generate convincingly realistic images:
An extreme close-up view of a red rose in soft natural lighting, extremely detailed petals with water droplets, photorealistic, high depth of field
Softly lit portrait of an elderly man with detailed wrinkles and skin texture, black and white, Leica camera
Still life photograph of a bowl of lemons on a wooden table, with shadows, studio lighting, shallow depth of field, detailed background
Resources for Stable Diffusion Prompts
Here are some useful sites to find prompts and guidance:
PromptHero
PromptHero has a library of Stable Diffusion prompts to browse and get inspiration from.
Automatic1111 WebUI
The WebUI for Automatic1111’s Stable Diffusion implementation has documentation on prompt structure.
Stable Diffusion Subreddit
Reddit’s /r/StableDiffusion subreddit has discussions on effective prompts.
Conclusion
Crafting detailed prompts with photographic and technical guidance is key to generating photorealistic images with Stable Diffusion. Specifying lighting, composition, image quality, artistic style, and other attributes instructs the AI to produce more realistic results. Referring to photographic prompt examples and Stable Diffusion communities will help you master prompts.