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 prompts with humor and Bitcoin references
prompts = {
"Mezo_Honey_Badger": (
"A humorous depiction of a honey badger representing Bitcoin's strength, resilience, and toughness in the world of Mezo. "
"The honey badger is wearing Bitcoin-themed sunglasses and sitting on a throne of Bitcoin coins, with a playful smirk. "
"The background features dynamic DeFi elements and Bitcoin symbols."
),
"Mezo_Bull": (
"A funny illustration of a bull representing Bitcoin’s rising price in the Mezo platform. "
"The bull is wearing a suit with a Bitcoin tie, looking optimistic while holding a chart with an upward trend. "
"The background is filled with humorous crypto symbols and vibrant DeFi elements."
),
"Mezo_Whale": (
"A comical depiction of a whale symbolizing large Bitcoin holders in the Mezo ecosystem. "
"The whale is lounging in a luxurious underwater Bitcoin vault, surrounded by Bitcoin bars, wearing a top hat and monocle. "
"The background includes satirical crypto elements and vibrant designs."
),
"Mezo_Pepe": (
"A playful meme featuring Pepe the Frog in the context of Mezo. Pepe is depicted as a Bitcoin superhero, complete with a mask and cape, fighting off market FUD. "
"The background is filled with Bitcoin symbols and meme culture references, combining humor and resilience."
)
}
# Generate images for each prompt
for name, prompt in prompts.items():
# Generate the image
image = pipe(prompt).images[0]
# Save the generated image
filename = f"mezo_{name.lower().replace(' ', '_')}.png"
image.save(filename)
print(f"Saved image: {filename}")](https://image.cdn2.seaart.me/2024-08-30/cr91qd5e878c73cf1odg-2/6a636198ab41ed64ac240e01bc435822_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 prompts with humor and Bitcoin references prompts = { "Mezo_Honey_Badger": ( "A humorous depiction of a honey badger representing Bitcoin's strength, resilience, and toughness in the world of Mezo. " "The honey badger is wearing Bitcoin-themed sunglasses and sitting on a throne of Bitcoin coins, with a playful smirk. " "The background features dynamic DeFi elements and Bitcoin symbols." ), "Mezo_Bull": ( "A funny illustration of a bull representing Bitcoin’s rising price in the Mezo platform. " "The bull is wearing a suit with a Bitcoin tie, looking optimistic while holding a chart with an upward trend. " "The background is filled with humorous crypto symbols and vibrant DeFi elements." ), "Mezo_Whale": ( "A comical depiction of a whale symbolizing large Bitcoin holders in the Mezo ecosystem. " "The whale is lounging in a luxurious underwater Bitcoin vault, surrounded by Bitcoin bars, wearing a top hat and monocle. " "The background includes satirical crypto elements and vibrant designs." ), "Mezo_Pepe": ( "A playful meme featuring Pepe the Frog in the context of Mezo. Pepe is depicted as a Bitcoin superhero, complete with a mask and cape, fighting off market FUD. " "The background is filled with Bitcoin symbols and meme culture references, combining humor and resilience." ) } # Generate images for each prompt for name, prompt in prompts.items(): # Generate the image image = pipe(prompt).images[0] # Save the generated image filename = f"mezo_{name.lower().replace(' ', '_')}.png" image.save(filename) print(f"Saved image: {filename}")
提示詞
復製
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 prompts with humor and Bitcoin references
prompts = {
"Mezo_Honey_Badger": (
"A humorous depiction of a honey badger representing Bitcoin's strength
,
resilience
,
and toughness in the world of Mezo
.
"
"The honey badger is wearing Bitcoin-themed sunglasses and sitting on a throne of Bitcoin coins
,
with a playful smirk
.
"
"The background features dynamic DeFi elements and Bitcoin symbols
.
"
)
,
"Mezo_Bull": (
"A funny illustration of a bull representing Bitcoin’s rising price in the Mezo platform
.
"
"The bull is wearing a suit with a Bitcoin tie
,
looking optimistic while holding a chart with an upward trend
.
"
"The background is filled with humorous crypto symbols and vibrant DeFi elements
.
"
)
,
"Mezo_Whale": (
"A comical depiction of a whale symbolizing large Bitcoin holders in the Mezo ecosystem
.
"
"The whale is lounging in a luxurious underwater Bitcoin vault
,
surrounded by Bitcoin bars
,
wearing a top hat and monocle
.
"
"The background includes satirical crypto elements and vibrant designs
.
"
)
,
"Mezo_Pepe": (
"A playful meme featuring Pepe the Frog in the context of Mezo
.
Pepe is depicted as a Bitcoin superhero
,
complete with a mask and cape
,
fighting off market FUD
.
"
"The background is filled with Bitcoin symbols and meme culture references
,
combining humor and resilience
.
"
)
}
# Generate images for each prompt
for name
,
prompt in prompts
.
items():
# Generate the image
image = pipe(prompt)
.
images[0]
# Save the generated image
filename = f"mezo_{name
.
lower()
.
replace(' '
,
'_')}
.
png"
image
.
save(filename)
print(f"Saved image: {filename}")
信息
模型 & 風格

模型
SeaArt Infinity
#動物
#卡通
#福瑞
#SeaArt Infinity
共 0 條評論
0
0
0