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 prompt for Mezo Honey Badger
prompt_honey_badger = (
"A humorous illustration of a honey badger, wearing Bitcoin-themed sunglasses, sitting on a pile of Bitcoin coins. "
"The honey badger has a confident smirk, representing Bitcoin's resilience and strength. "
"The background includes playful DeFi elements and Bitcoin symbols, with a fun and satirical vibe."
)
# Generate the image
image_honey_badger = pipe(prompt=prompt_honey_badger).images[0]
image_honey_badger.save("mezo_honey_badger.png")
print("Saved image: mezo_honey_badger.png")](https://image.cdn2.seaart.me/2024-08-30/cr924jle878c73aormcg-1/2b11b323484505ade4bd0a19fef2ccd0_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 prompt for Mezo Honey Badger
prompt_honey_badger = (
"A humorous illustration of a honey badger
,
wearing Bitcoin-themed sunglasses
,
sitting on a pile of Bitcoin coins
.
"
"The honey badger has a confident smirk
,
representing Bitcoin's resilience and strength
.
"
"The background includes playful DeFi elements and Bitcoin symbols
,
with a fun and satirical vibe
.
"
)
# Generate the image
image_honey_badger = pipe(prompt=prompt_honey_badger)
.
images[0]
image_honey_badger
.
save("mezo_honey_badger
.
png")
print("Saved image: mezo_honey_badger
.
png")
信息
模型 & 风格

模型
SeaArt Infinity
#卡通
#福瑞
#SeaArt Infinity
共 0 条评论
0
0
0