# 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 = (
"Elegant
,
surreal scene set in a Spanish office: A woman in a disheveled
,
oversized white men's shirt
,
one shoulder exposed
,
barefoot
,
and with a Bitcoin hairpin in her braid
,
plays bowling with a ball featuring the Bitcoin symbol
.
Her narrow lips and large nose are highlighted by the warm lighting
.
Spilled milk on the desk and remnants on her lips add to the casual atmosphere
.
The office
,
infused with Spanish architectural elements
,
creates a relaxed
,
whimsical mood
.
"
)
# Configuration settings
clip_guidance_scale = 15 # Strong adherence to the prompt
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 = (
"Woman in white shirt
,
Bitcoin hairpin::2
.
0 | Playing bowling with Bitcoin ball::1
.
8 | Disheveled appearance
,
nipples visible::1
.
7 | Spanish office setting with spilled milk::1
.
9"
) # Weight for enhancing key elements
cross_attention_strength = 1
.
0 # Strong focus on character and setting
symmetry = "none" # No symmetry
,
natural composition
symmetry_loss_weight = 0
.
1 # Minimal impact of symmetry
color_match_strength = 0
.
9 # Harmonious blending of warm tones
perlin_noise_scale = 0
.
05 # Low Perlin noise for smooth textures
fractal_noise = False # Disable fractal noise
depth_map = None # No depth map needed
parallax_effect = False # No parallax effect
# Generate the image
image = pipe(
prompt=prompt_weighting
,
clip_guidance_scale=clip_guidance_scale
,
hr_scale=hr_scale
,
hr_upscaler=hr_upscaler
,
latent_shift=latent_shift
,
cross_attention_strength=cross_attention_strength
,
symmetry=symmetry
,
symmetry_loss_weight=
INFO
Checkpoint & LoRA

Checkpoint
SeaArt Infinity
#SeaArt Infinity
0 comment
0
36
0