banner_image ×
SeaArt AI Enterprise Version

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 fantasy shoujo prompt
prompts = {
    "fantasy_shoujo_scene": (
        "A magical and enchanting fantasy scene in a shoujo style. The setting is a whimsical, enchanted forest filled with glowing, ethereal lights and mystical creatures. "
        "In the center, a young heroine with long, flowing hair and a sparkling, elaborate dress stands on a gently glowing path. Her expression is one of wonder and hope. "
        "Beside her, a charming, mysterious prince with a flowing cape and a gentle smile offers her a glowing, magical artifact. The prince's eyes are filled with admiration and affection. "
        "The background features an array of fantastical flora and fauna, including luminescent flowers, delicate fairies, and a shimmering waterfall. "
        "The scene is bathed in soft, pastel colors with a dreamlike quality, capturing the romance and magical atmosphere typical of shoujo and fantasy genres. "
        "The overall image conveys a sense of magic, romance, and wonder, inviting viewers into a beautifully illustrated world where dreams come true."
    )
}

# 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()
chatIcon
I have some private advice just for you.
Create AI Character
image
avatar
S
SHEM TEREM
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 fantasy shoujo prompt prompts = { "fantasy_shoujo_scene": ( "A magical and enchanting fantasy scene in a shoujo style . The setting is a whimsical , enchanted forest filled with glowing , ethereal lights and mystical creatures . " "In the center , a young heroine with long , flowing hair and a sparkling , elaborate dress stands on a gently glowing path . Her expression is one of wonder and hope . " "Beside her , a charming , mysterious prince with a flowing cape and a gentle smile offers her a glowing , magical artifact . The prince's eyes are filled with admiration and affection . " "The background features an array of fantastical flora and fauna , including luminescent flowers , delicate fairies , and a shimmering waterfall . " "The scene is bathed in soft , pastel colors with a dreamlike quality , capturing the romance and magical atmosphere typical of shoujo and fantasy genres . " "The overall image conveys a sense of magic , romance , and wonder , inviting viewers into a beautifully illustrated world where dreams come true . " ) } # 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
Prompts
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 fantasy shoujo prompt prompts = { "fantasy_shoujo_scene": ( "A magical and enchanting fantasy scene in a shoujo style. The setting is a whimsical, enchanted forest filled with glowing, ethereal lights and mystical creatures. " "In the center, a young heroine with long, flowing hair and a sparkling, elaborate dress stands on a gently glowing path. Her expression is one of wonder and hope. " "Beside her, a charming, mysterious prince with a flowing cape and a gentle smile offers her a glowing, magical artifact. The prince's eyes are filled with admiration and affection. " "The background features an array of fantastical flora and fauna, including luminescent flowers, delicate fairies, and a shimmering waterfall. " "The scene is bathed in soft, pastel colors with a dreamlike quality, capturing the romance and magical atmosphere typical of shoujo and fantasy genres. " "The overall image conveys a sense of magic, romance, and wonder, inviting viewers into a beautifully illustrated world where dreams come true." ) } # 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()
CFG Scale
7
Steps
25
Sampler
euler
Seed
1500261356
Scheduler
karras
Image Size
688 X 1024
Model
SeaArt Infinity
Generate
Size
688X1024
Date
Aug 31, 2024
Mode
Studio
Type
cell
Checkpoint & LoRA
SeaArt Infinity
Checkpoint
SeaArt Infinity
#Anime
#SeaArt Infinity
0 comment
0
1
0

SeaArt Swift AI Apps

ai_video_generationimg
AI Video Generation

Unleash your imagination and let AI create visual wonders for you

face_swap_titleimg
Face Swap Online Free

Create funny or realistic face swap videos & photos in a snap

vrtry_cloth_h1img
Virtual Try on Clothes

Try on any type of clothes virtually with AI.

DisneyFilter_top_titleimg
Disney Filter

Instantly transform your photos into Disney characters.

wanimg2vid_h1img
Wan 2.1 Image to Video

Animate photos with realistic motion and cinematic effects.

ai_eraserimg
AI Eraser

Easily remove unwanted objects, watermarks, or people from your photos.

Explore More AI Apps 

Explore Related

ControlNet
logo
English
Application
Create Image AI Characters Swift AI Model Training Canvas AI Apps Workflow
About
Studio Rankings AI Chat AI Blog AI News
Help
Guides Customer Service
Get App
icon
Download on the
APP Store
icon
GET IT ON
Google Play
Follow Us
iconiconiconiconiconiconiconicon
© 2025 SeaArt, Inc.
Copyright Policy
Terms
Privacy 特定商取引法 資金決済法に基づく表示
More