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 provocative and detailed prompt
prompts = {
"sensual_whale_scene": (
"A provocative digital painting featuring a colossal, self-assured whale with a gleaming Bitcoin chain around its neck. "
"The whale is depicted in an elaborate pose, radiating confidence and charm. Mera, the Aqua Woman from Aquaman, is shown in a dominant riding position on top of the whale. "
"Her expression is one of intense, almost ecstatic pleasure, as she holds onto the Bitcoin chain, clearly enjoying the interaction. "
"The scene emphasizes the erotic and powerful connection between Mera and the whale, with exaggerated details of her pleasure. "
"Aquaman, in the background, is depicted with a heartbroken, tearful expression, his face showing deep sorrow and disbelief. "
"The underwater environment is richly colored and surreal, enhancing 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/cr93jede878c73clgokg-1/e1394a8375db681a4d99287731b0a831_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 provocative and detailed prompt
prompts = {
"sensual_whale_scene": (
"A provocative digital painting featuring a colossal
,
self-assured whale with a gleaming Bitcoin chain around its neck
.
"
"The whale is depicted in an elaborate pose
,
radiating confidence and charm
.
Mera
,
the Aqua Woman from Aquaman
,
is shown in a dominant riding position on top of the whale
.
"
"Her expression is one of intense
,
almost ecstatic pleasure
,
as she holds onto the Bitcoin chain
,
clearly enjoying the interaction
.
"
"The scene emphasizes the erotic and powerful connection between Mera and the whale
,
with exaggerated details of her pleasure
.
"
"Aquaman
,
in the background
,
is depicted with a heartbroken
,
tearful expression
,
his face showing deep sorrow and disbelief
.
"
"The underwater environment is richly colored and surreal
,
enhancing 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()
信息
模型 & 風格

模型
SeaArt Infinity
#動物
#SeaArt Infinity
共 0 條評論
0
0
0