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 visual novel prompt
prompts = {
    "visual_novel_scene": (
        "A beautiful and emotionally charged scene in a visual novel, set in a serene, cherry blossom-filled park at sunset. "
        "Two characters stand facing each other, a young woman with flowing, long hair and a shy smile, and a young man who looks "
        "nervous but determined. The cherry blossoms are gently falling around them, creating a soft pink carpet on the ground. "
        "The warm, golden sunlight filters through the trees, casting a soft glow on the characters, enhancing the romantic atmosphere. "
        "The background shows a peaceful lake with a small wooden bridge, reflecting the warm colors of the sunset. "
        "The scene is filled with subtle, delicate details, such as the blush on the woman’s cheeks and the gentle breeze "
        "playing with their hair. The overall mood is tender and full of unspoken emotions, capturing the essence of a pivotal moment in their relationship."
    )
}

# 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
Some interesting things can only be known by 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 visual novel prompt prompts = { "visual_novel_scene": ( "A beautiful and emotionally charged scene in a visual novel , set in a serene , cherry blossom-filled park at sunset . " "Two characters stand facing each other , a young woman with flowing , long hair and a shy smile , and a young man who looks " "nervous but determined . The cherry blossoms are gently falling around them , creating a soft pink carpet on the ground . " "The warm , golden sunlight filters through the trees , casting a soft glow on the characters , enhancing the romantic atmosphere . " "The background shows a peaceful lake with a small wooden bridge , reflecting the warm colors of the sunset . " "The scene is filled with subtle , delicate details , such as the blush on the woman’s cheeks and the gentle breeze " "playing with their hair . The overall mood is tender and full of unspoken emotions , capturing the essence of a pivotal moment in their relationship . " ) } # 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 visual novel prompt prompts = { "visual_novel_scene": ( "A beautiful and emotionally charged scene in a visual novel, set in a serene, cherry blossom-filled park at sunset. " "Two characters stand facing each other, a young woman with flowing, long hair and a shy smile, and a young man who looks " "nervous but determined. The cherry blossoms are gently falling around them, creating a soft pink carpet on the ground. " "The warm, golden sunlight filters through the trees, casting a soft glow on the characters, enhancing the romantic atmosphere. " "The background shows a peaceful lake with a small wooden bridge, reflecting the warm colors of the sunset. " "The scene is filled with subtle, delicate details, such as the blush on the woman’s cheeks and the gentle breeze " "playing with their hair. The overall mood is tender and full of unspoken emotions, capturing the essence of a pivotal moment in their relationship." ) } # 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
287208195
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
0
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

ghibli_filter_h1img
Studio Ghibli Filter

Transform any photo into unique Ghibli-style art in just one click.

ai_tools_4img
AI Filters

Turns every photo into a work of art

gender_swapimg
Gender Swap

Swap genders in photos and videos with SeaArt's AI gender swapper. Enjoy fun and realistic transformations effortlessly, free online!

dance_vidimg
AI Dance Video Generator

Play with this AI dance video generator, unleash your inner dancer instantly!

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