banner_image ×
SeaArt AI Предприятие

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 interactive movie scene prompt
prompts = {
    "interactive_film_scene": (
        "A cinematic and emotionally charged digital painting depicting a pivotal scene from an interactive film. "
        "The scene is set in a dimly lit room with dramatic lighting, casting long shadows and creating a tense atmosphere. "
        "In the center, two characters are engaged in a crucial conversation. One character, with a worried expression, is standing with clenched fists, "
        "while the other, calm and composed, is sitting at a desk with an open dossier of documents. "
        "The room is filled with details: a large, ornate desk with scattered papers, a flickering desk lamp, and a window showing a rainy night outside. "
        "The background features rich textures and elements that add to the narrative tension, such as framed photographs and personal items. "
        "The overall tone of the scene is dramatic and immersive, capturing the essence of decision-making and emotional depth characteristic of interactive films."
    )
}

# 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
Некоторые вещи можно сказать только здесь.
Создать AI-персонажа
image
avatar
S
SHEM TEREM
Generation Data
Запись
Подсказки
Копировать подсказки
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 interactive movie scene prompt prompts = { "interactive_film_scene": ( "A cinematic and emotionally charged digital painting depicting a pivotal scene from an interactive film . " "The scene is set in a dimly lit room with dramatic lighting , casting long shadows and creating a tense atmosphere . " "In the center , two characters are engaged in a crucial conversation . One character , with a worried expression , is standing with clenched fists , " "while the other , calm and composed , is sitting at a desk with an open dossier of documents . " "The room is filled with details: a large , ornate desk with scattered papers , a flickering desk lamp , and a window showing a rainy night outside . " "The background features rich textures and elements that add to the narrative tension , such as framed photographs and personal items . " "The overall tone of the scene is dramatic and immersive , capturing the essence of decision-making and emotional depth characteristic of interactive films . " ) } # 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()
Информация
Подсказки
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 interactive movie scene prompt prompts = { "interactive_film_scene": ( "A cinematic and emotionally charged digital painting depicting a pivotal scene from an interactive film. " "The scene is set in a dimly lit room with dramatic lighting, casting long shadows and creating a tense atmosphere. " "In the center, two characters are engaged in a crucial conversation. One character, with a worried expression, is standing with clenched fists, " "while the other, calm and composed, is sitting at a desk with an open dossier of documents. " "The room is filled with details: a large, ornate desk with scattered papers, a flickering desk lamp, and a window showing a rainy night outside. " "The background features rich textures and elements that add to the narrative tension, such as framed photographs and personal items. " "The overall tone of the scene is dramatic and immersive, capturing the essence of decision-making and emotional depth characteristic of interactive films." ) } # 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
Шаги
25
Сборщик
euler
Зерно
1865294932
Диспетчер
karras
Размер изображения
688 X 1024
Модель
SeaArt Infinity
Генерировать
Размер
688X1024
Дата
Aug 31, 2024
Режим
Студия
Тип
cell
Checkpoint & LoRA
SeaArt Infinity
Checkpoint
SeaArt Infinity
#Мужчина
#SeaArt Infinity
0 комментариев
0
0
0

SeaArt: Удобные AI Apps

ai_video_generationimg
Генерация видео с помощью ИИ

Освободите своё воображение, и ИИ создаст для вас визуальные чудеса

face_swap_titleimg
Бесплатная онлайн смена лица

Быстро создавайте забавные и реалистичные видео и фотографии с изменением лица

cartoon_avatar_h1img
Создатель мультяшных аватаров

Превратите ваши фотографии в уникальные мультяшные аватары мгновенно.

vrtry_cloth_h1img
Виртуальная примерка одежды

Примерьте любую одежду виртуально с помощью ИИ

anime2realityimg
Аниме в реальность

Мгновенно оживите своих любимых персонажей аниме.

DisneyFilter_top_titleimg
Фильтр Дисней

Мгновенно преобразуйте свои фотографии в персонажей Disney.

Исследовать больше AI-приложений 

Связанные рекомендации

ControlNet
logo
Pусский
Приложение
Создание изображения AI Персонажи Swift AI Обучение модели Canvas Быстрое приложение Рабочий процесс
О нём
Студия Лидеры Чат ИИ AI блог AI новости
Помощь
Руководство Обслуживание клиентов
Получить приложение
icon
Download on the
APP Store
icon
GET IT ON
Google Play
Следите за нами
iconiconiconiconiconiconiconicon
© 2025 SeaArt, Inc.
Copyright Policy
Условия использования
Политика конфиденциальности 特定商取引法 資金決済法に基づく表示
Больше