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 detailed and action-packed prompt
prompts = {
"cooking_for_bitcoin_whale_shooter": (
"A third-person shooter-style scene featuring a badass female character in tactical gear, "
"engaged in an intense action sequence. She is in a dynamic pose, holding a futuristic cooking utensil like a weapon, "
"as she prepares a meal for a massive, armored whale sitting at a high-tech kitchen table. "
"The whale, wearing a glowing Bitcoin chain, looks smug and untouchable, surrounded by holographic displays. "
"The woman, with a determined expression, feeds the whale while staying alert, as if ready for battle. "
"In the background, a sleek and dangerous-looking shark with a Bitcoin symbol on its fin circles the scene, "
"adding to the tension. The environment is dark and gritty, with neon lights and high-tech gadgets typical of a sci-fi shooter game. "
"The overall atmosphere is intense and action-packed, capturing the high stakes and energy of a third-person shooter."
)
}
# 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-31/cr9du75e878c7386pf0g-1/3caab1eb77f97f293ad754d597e8187f_high.webp)
Generation Data
Protokolle
Prompts
Prompts kopieren
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 detailed and action-packed prompt
prompts = {
"cooking_for_bitcoin_whale_shooter": (
"A third-person shooter-style scene featuring a badass female character in tactical gear
,
"
"engaged in an intense action sequence
.
She is in a dynamic pose
,
holding a futuristic cooking utensil like a weapon
,
"
"as she prepares a meal for a massive
,
armored whale sitting at a high-tech kitchen table
.
"
"The whale
,
wearing a glowing Bitcoin chain
,
looks smug and untouchable
,
surrounded by holographic displays
.
"
"The woman
,
with a determined expression
,
feeds the whale while staying alert
,
as if ready for battle
.
"
"In the background
,
a sleek and dangerous-looking shark with a Bitcoin symbol on its fin circles the scene
,
"
"adding to the tension
.
The environment is dark and gritty
,
with neon lights and high-tech gadgets typical of a sci-fi shooter game
.
"
"The overall atmosphere is intense and action-packed
,
capturing the high stakes and energy of a third-person shooter
.
"
)
}
# 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()
Info
Checkpoint & LoRA

Checkpoint
SeaArt Infinity
#Science-Fiction
#Cyberpunk
#SeaArt Infinity
0 Kommentar(e)
0
0
0