From stable_diffusion import StableDiffusionPipeline import torch from PIL impor
![from stable_diffusion import StableDiffusionPipeline
import torch
from PIL import Image
# Load the Stable Diffusion model
pipe = StableDiffusionPipeline.from_pretrained("stable-diffusion-v1-4")
pipe = pipe.to("cuda") # Use GPU if available
# Define the highly detailed and emotive prompt
prompts = {
"sensual_whale_scene": (
"A provocative and detailed digital painting featuring a massive, self-ured whale with a dazzling Bitcoin chain around its neck. "
"The whale has a broad, satisfied smile, exuding an aura of supreme confidence and charm. "
"Mera, the Aqua Woman from Aquaman, is shown in an intense, domriding position on top of the whale. "
"Her face is flushed with genuine, ecstatic pleasure, with eyes closed and a broad, satisfied smile, as she grips the Bitcoin chain tightly. "
"The scene emphasizes her intense enjoyment, with exaggerated, realistic details of her blissful expression. "
"In the background, Aquaman is depicted in a dramatic and sorrowful pose, with tears streaming down his face, his expression one of deep anguish and disbelief. "
"The underwater environment is vividly colored and surreal, heightening the emotional and dramatic contrast of the scene."
)
}
# Generate the image for the prompt
for name, prompt in prompts.items():
# Generate the image using the prompt
image = pipe(prompt).images[0]
# Save the generated image
filename = f"{name.lower().replace(' ', '_')}.png"
image.save(filename)
print(f"Saved image: {filename}")
# Optionally, show the generated image
image.show()](https://image.cdn2.seaart.me/2024-08-30/cr93h35e878c73cl7sag-1/3b4c69fed0c96048a863d440cb0d22e0_high.webp)
from stable_diffusion import StableDiffusionPipeline import torch from PIL import Image # Load the Stable Diffusion model pipe = StableDiffusionPipeline.from_pretrained("stable-diffusion-v1-4") pipe = pipe.to("cuda") # Use GPU if available # Define the highly detailed and emotive prompt prompts = { "sensual_whale_scene": ( "A provocative and detailed digital painting featuring a massive, self-ured whale with a dazzling Bitcoin chain around its neck. " "The whale has a broad, satisfied smile, exuding an aura of supreme confidence and charm. " "Mera, the Aqua Woman from Aquaman, is shown in an intense, domriding position on top of the whale. " "Her face is flushed with genuine, ecstatic pleasure, with eyes closed and a broad, satisfied smile, as she grips the Bitcoin chain tightly. " "The scene emphasizes her intense enjoyment, with exaggerated, realistic details of her blissful expression. " "In the background, Aquaman is depicted in a dramatic and sorrowful pose, with tears streaming down his face, his expression one of deep anguish and disbelief. " "The underwater environment is vividly colored and surreal, heightening the emotional and dramatic contrast of the scene." ) } # Generate the image for the prompt for name, prompt in prompts.items(): # Generate the image using the prompt image = pipe(prompt).images[0] # Save the generated image filename = f"{name.lower().replace(' ', '_')}.png" image.save(filename) print(f"Saved image: {filename}") # Optionally, show the generated image image.show()
Generation Data
บันทึก
คำพรอมต์
คัดลอกคำพรอมต์
from stable_diffusion import StableDiffusionPipeline
import torch
from PIL import Image
# Load the Stable Diffusion model
pipe = StableDiffusionPipeline
.
from_pretrained("stable-diffusion-v1-4")
pipe = pipe
.
to("cuda") # Use GPU if available
# Define the highly detailed and emotive prompt
prompts = {
"sensual_whale_scene": (
"A provocative and detailed digital painting featuring a massive
,
self-ured whale with a dazzling Bitcoin chain around its neck
.
"
"The whale has a broad
,
satisfied smile
,
exuding an aura of supreme confidence and charm
.
"
"Mera
,
the Aqua Woman from Aquaman
,
is shown in an intense
,
domriding position on top of the whale
.
"
"Her face is flushed with genuine
,
ecstatic pleasure
,
with eyes closed and a broad
,
satisfied smile
,
as she grips the Bitcoin chain tightly
.
"
"The scene emphasizes her intense enjoyment
,
with exaggerated
,
realistic details of her blissful expression
.
"
"In the background
,
Aquaman is depicted in a dramatic and sorrowful pose
,
with tears streaming down his face
,
his expression one of deep anguish and disbelief
.
"
"The underwater environment is vividly colored and surreal
,
heightening the emotional and dramatic contrast of the scene
.
"
)
}
# Generate the image for the prompt
for name
,
prompt in prompts
.
items():
# Generate the image using the prompt
image = pipe(prompt)
.
images[0]
# Save the generated image
filename = f"{name
.
lower()
.
replace(' '
,
'_')}
.
png"
image
.
save(filename)
print(f"Saved image: {filename}")
# Optionally
,
show the generated image
image
.
show()
ข้อมูล
Checkpoint & LoRA

Checkpoint
SeaArt Infinity
#สัตว์
#Mythology
#SeaArt Infinity
0 ความคิดเห็น
0
0
0