banner_image ×
SeaArt AI Empresa

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
Tengo algunas ideas atrevidas, ¿te atreves a escuchar?
Crear personaje de IA
image
avatar
S
SHEM TEREM
Generation Data
Registro
Prompts
Copiar 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()
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()
Escala CFG
7
Pasos
25
Recolector
euler
Semilla
1500261356
Programador
karras
Tamaño de imagen
688 X 1024
Modelo
SeaArt Infinity
Generar
Tamaño
688X1024
Fecha
Aug 31, 2024
Modo
Estudio
Tipo
cell
Checkpoint & LoRA
SeaArt Infinity
Checkpoint
SeaArt Infinity
#Anime
#SeaArt Infinity
0 comentario(s)
0
0
0

Apps de AI Rápido de SeaArt

ai_video_generationimg
Generación de videos con IA

Libera tu imaginación, la IA creará maravillas visuales para ti

face_swap_titleimg
Cambiar caras con IA online gratis (Face swap AI)

Crea rápidamente videos y fotos de cambio de cara divertidos y realistas

DisneyFilter_top_titleimg
Filtro Disney

Transforma instantáneamente tus fotos en personajes de Disney.

image2lineartimg
Imagen a arte lineal

Convierte fácilmente cualquier imagen en arte lineal elegante

wanimg2vid_h1img
Wan 2.1 Imagen a Video

Anima fotos con movimientos realistas y efectos cinematográficos.

ai_eraserimg
Borrador de IA

Elimina fácilmente objetos no deseados, marcas de agua o personas de tus fotos.

Explora más aplicaciones AI 

Recomendaciones relacionadas

ControlNet
logo
Español
Aplicación
Crear imagen Personajes AI Swift AI Entrenamiento de modelos Canvas Aplicación rápida Flujo de trabajo
Sobre él/ella
Estudio Clasificación Chat IA AI blog AI noticias
Ayuda
Guías Servicio al cliente
Obtener aplicación
icon
Download on the
APP Store
icon
GET IT ON
Google Play
Síguenos
iconiconiconiconiconiconiconicon
© 2025 SeaArt, Inc.
Copyright Policy
Términos
Privacidad 特定商取引法 資金決済法に基づく表示
Más