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 Fantasy and Seinen themes with Bitcoin, Whale, and Shark
prompts = {
"fantasy_seinen_bitcoin_whale_shark": (
"In a dark, immersive fantasy world where ancient magic and modern technology intersect, a colossal, mythical whale with shimmering Bitcoin symbols etched into its scales soars through a starry sky. "
"The whale exudes an aura of power and wisdom, surrounded by mystical energy and cosmic light. "
"Below, on a rugged, enchanted shoreline, a brooding figure in elaborate, battle-worn armor surveys the scene. "
"This figure, embodying the sēinen genre's mature themes, is lost in deep thought, grappling with personal demons and existential questions. "
"In the stormy sea beneath, a fearsome, technologically augmented shark with Bitcoin patterns on its fin prowls, representing the danger and volatility of the modern world. "
"The artwork blends dark, atmospheric tones with intricate details, highlighting the juxtaposition of fantasy elements and the mature, introspective nature of sēinen storytelling."
)
}
# 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/cr9efste878c73c9pefg-2/ce759f6ae1087b33eb0a50f9c4299965_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 Fantasy and Seinen themes with Bitcoin, Whale, and Shark prompts = { "fantasy_seinen_bitcoin_whale_shark": ( "In a dark, immersive fantasy world where ancient magic and modern technology intersect, a colossal, mythical whale with shimmering Bitcoin symbols etched into its scales soars through a starry sky. " "The whale exudes an aura of power and wisdom, surrounded by mystical energy and cosmic light. " "Below, on a rugged, enchanted shoreline, a brooding figure in elaborate, battle-worn armor surveys the scene. " "This figure, embodying the sēinen genre's mature themes, is lost in deep thought, grappling with personal demons and existential questions. " "In the stormy sea beneath, a fearsome, technologically augmented shark with Bitcoin patterns on its fin prowls, representing the danger and volatility of the modern world. " "The artwork blends dark, atmospheric tones with intricate details, highlighting the juxtaposition of fantasy elements and the mature, introspective nature of sēinen storytelling." ) } # 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
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 prompt for Fantasy and Seinen themes with Bitcoin
,
Whale
,
and Shark
prompts = {
"fantasy_seinen_bitcoin_whale_shark": (
"In a dark
,
immersive fantasy world where ancient magic and modern technology intersect
,
a colossal
,
mythical whale with shimmering Bitcoin symbols etched into its scales soars through a starry sky
.
"
"The whale exudes an aura of power and wisdom
,
surrounded by mystical energy and cosmic light
.
"
"Below
,
on a rugged
,
enchanted shoreline
,
a brooding figure in elaborate
,
battle-worn armor surveys the scene
.
"
"This figure
,
embodying the sēinen genre's mature themes
,
is lost in deep thought
,
grappling with personal demons and existential questions
.
"
"In the stormy sea beneath
,
a fearsome
,
technologically augmented shark with Bitcoin patterns on its fin prowls
,
representing the danger and volatility of the modern world
.
"
"The artwork blends dark
,
atmospheric tones with intricate details
,
highlighting the juxtaposition of fantasy elements and the mature
,
introspective nature of sēinen storytelling
.
"
)
}
# 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 Kommentar(e)
0
3
0