# Import necessary libraries from stable_diffusion import StableDiffusionPipelin

Generation Data
Records
Prompts
Copy
# Import necessary libraries
from stable_diffusion import StableDiffusionPipeline
import torch
from PIL import Image
# Configure Stable Diffusion
pipe = StableDiffusionPipeline
.
from_pretrained("stable-diffusion-v1-4")
# Define the prompt
prompt = (
"A black-and-white photograph captures a woman in a dramatic
,
elegant pose
,
standing against a plain white background
.
"
"The image is taken from a side angle
,
showcasing her back and left profile
.
"
"She wears a form-fitting
,
sleeveless black dress with a deep back exposure
,
exposing her back and shoulders
,
while highlighting her elegant silhouette
.
"
"Her blonde
,
wavy hair cascades down past her shoulders
,
framing her face
.
The woman's right hand holds a small flower
,
while her left hand rests elegantly on her hip
.
"
"A thin
,
dark bangle adorns her left wrist
.
Soft
,
even lighting creates subtle shadows on the wall and enhances the contours of her body
,
adding depth and an intimate feel to the image
.
"
"The high contrast between the black dress and the white background emphasizes the subject's form and the luxurious fabric of her garment
.
"
"The overall composition is simple yet sophisticated
,
focusing on the interplay of light
,
shadow
,
and texture
,
creating a serene and contemplative mood
.
"
)
# Configuration settings
tile_mode = "none" # Disable tiling generation
clip_guidance_scale = 15 # Enhance adherence to the prompt
clip_guidance_dropout = 0
.
05 # Subtle variations
hr_scale = 3
.
0 # High-resolution scaling for detailed textures
hr_upscaler = "R-ESRGAN" # High-quality upscaling
latent_shift = torch
.
randn(1
,
4
,
64
,
64) * 0
.
02 # Subtle latent space adjustments
prompt_weighting = (
"Black-and-white photograph::1
.
7 | Elegant pose::1
.
6 | Side angle showcasing back::1
.
7 | Form-fitting black dress::1
.
6 | Blonde
,
wavy hair::1
.
5 | "
"Small flower in right hand::1
.
5 | Dark bangle on left wrist::1
.
4 | Soft
,
even lighting::1
.
6 | High contrast::1
.
7 | Simple yet sophisticated composition
INFO
Checkpoint & LoRA

Checkpoint
SeaArt Infinity
#Realistic
#SeaArt Infinity
0 comment
0
0
0