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 turn-based RPG prompt
prompts = {
"turn_based_rpg_scene": (
"A strategic and intense scene from a turn-based RPG, set in a mystical oceanic arena where the players are engaged in a critical battle. "
"The setting is a grand, ancient underwater temple with glowing runes on the walls, surrounded by pillars of coral and bioluminescent plants. "
"At the center of the scene, a powerful, enigmatic whale adorned with a shining Bitcoin emblem hovers majestically, ready to make its move. "
"Opposite the whale, three adventurers stand in battle formation, each with unique abilities and weapons: a fierce warrior wielding a trident, "
"a cunning mage casting a spell with glowing blue energy, and a skilled healer holding a staff, ready to support the team. "
"The scene captures the tension of the moment, with the whale's glowing eyes locked onto the adventurers, and the adventurers poised for action, "
"strategically planning their next moves. The overall atmosphere is one of high stakes and tactical depth, where every decision matters, and the outcome of the battle hangs in the balance."
)
}
# 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/cr9e3vte878c73c8as70-1/eec1ae349ee02be41b5bf050f6fe1c10_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 detailed turn-based RPG prompt prompts = { "turn_based_rpg_scene": ( "A strategic and intense scene from a turn-based RPG, set in a mystical oceanic arena where the players are engaged in a critical battle. " "The setting is a grand, ancient underwater temple with glowing runes on the walls, surrounded by pillars of coral and bioluminescent plants. " "At the center of the scene, a powerful, enigmatic whale adorned with a shining Bitcoin emblem hovers majestically, ready to make its move. " "Opposite the whale, three adventurers stand in battle formation, each with unique abilities and weapons: a fierce warrior wielding a trident, " "a cunning mage casting a spell with glowing blue energy, and a skilled healer holding a staff, ready to support the team. " "The scene captures the tension of the moment, with the whale's glowing eyes locked onto the adventurers, and the adventurers poised for action, " "strategically planning their next moves. The overall atmosphere is one of high stakes and tactical depth, where every decision matters, and the outcome of the battle hangs in the balance." ) } # 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
Records
Prompts
Copy
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 turn-based RPG prompt
prompts = {
"turn_based_rpg_scene": (
"A strategic and intense scene from a turn-based RPG
,
set in a mystical oceanic arena where the players are engaged in a critical battle
.
"
"The setting is a grand
,
ancient underwater temple with glowing runes on the walls
,
surrounded by pillars of coral and bioluminescent plants
.
"
"At the center of the scene
,
a powerful
,
enigmatic whale adorned with a shining Bitcoin emblem hovers majestically
,
ready to make its move
.
"
"Opposite the whale
,
three adventurers stand in battle formation
,
each with unique abilities and weapons: a fierce warrior wielding a trident
,
"
"a cunning mage casting a spell with glowing blue energy
,
and a skilled healer holding a staff
,
ready to support the team
.
"
"The scene captures the tension of the moment
,
with the whale's glowing eyes locked onto the adventurers
,
and the adventurers poised for action
,
"
"strategically planning their next moves
.
The overall atmosphere is one of high stakes and tactical depth
,
where every decision matters
,
and the outcome of the battle hangs in the balance
.
"
)
}
# 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
#SeaArt Infinity
0 comment
0
1
0