# Import necessary libraries from stable_diffusion import StableDiffusionPipelin

Generation Data
السجل
كلمة التلميح
نسخ
# Import necessary libraries
from stable_diffusion import StableDiffusionPipeline
import torch
from PIL import Image
# Load the Stable Diffusion model
pipe = StableDiffusionPipeline
.
from_pretrained("stable-diffusion-v1-4")
# Define the prompt
prompt = (
"An illustrative book cover featuring a central apple motif and a coiled green snake
.
"
"The apple has a smooth
,
rounded shape
,
transitioning from dark green at the top to a peach or light orange hue at the bottom
,
resembling a buttocks
.
"
"The snake
,
in dark forest green with lighter green accents
,
encircles the apple in a whimsical manner
,
its body forming an arch that frames the title
.
"
"The snake's head
,
positioned at the bottom right
,
has a prominent eye with a black pupil and white sclera
,
a small curved mouth
,
and a forked tongue protruding forward
.
"
"Above the apple
,
the word 'Emmanuelle' is displayed in a bold
,
black serif font that slightly curves to fit the circular layout
.
"
"Below the apple
,
the text 'Emmanuelle Arsan' appears in a smaller
,
red sans-serif font
.
"
"The background is a plain beige color with subtle marks and slight discolorations
,
giving it a worn look
.
"
"The composition is centered and symmetrical
,
with medium contrast and high saturation
.
"
"The lighting is even
,
ensuring all elements are clearly visible without shadows or highlights
.
"
"The color palette includes dark forest green
,
apple red
,
peach orange
,
and beige
,
creating a visually striking and balanced design that evokes a mysterious and intriguing mood
.
"
)
# Configuration settings
clip_guidance_scale = 18 # High adherence to the detailed prompt
hr_scale = 2
.
5 # High resolution for detailed illustration
hr_upscaler = "R-ESRGAN" # High-quality upscaling for sharp details
latent_shift = torch
.
randn(1
,
4
,
64
,
64) * 0
.
015 # Slight variation in the latent space for natural effects
prompt_weighting = (
"Apple motif::2
.
0 | Coiled green snake::2
.
0 | Bold serif font::1
.
8 | Subtle backgr
معلومات
Checkpoint & LoRA

Checkpoint
SeaArt Infinity
#كرتون
#SeaArt Infinity
0 تعليق
0
1
0