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
有些有趣的事,只能你知道。
创建数字人
image
avatar
S
SHEM TEREM
创作参数
记录
提示词
复制
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()
文本强度
7
步骤
25
采集器
euler
随机种子
1865294932
调度器
karras
图片尺寸
688 X 1024
模型
SeaArt Infinity
创作
尺寸
688X1024
日期
Aug 31, 2024
模式
实验室
类型
cell
模型 & 风格
SeaArt Infinity
模型
SeaArt Infinity
#男士
#SeaArt Infinity
共 0 条评论
0
3
0

SeaArt快捷AI应用

ai_video_generationimg
AI视频生成

释放您的想象力,AI为您成就视觉奇迹

face_swap_titleimg
免费在线换脸

快速制作有趣逼真的换脸视频和照片

dance_vidimg
AI舞蹈视频生成器

玩转AI跳舞视频生成器,瞬间化身舞王!

gender_swapimg
性别转换

通过SeaArt的AI性别转换器,轻松转换照片和视频中的性别。免费在线享受有趣且逼真的转换!

ai_tools_4img
AI滤镜

让每张照片都成为艺术品

wanimg2vid_h1img
Wan 2.1图生视频

用逼真的动作和电影效果把照片变成动画。

探索更多AI应用 

相关推荐

控制网
logo
中文
应用
创作图像 数字人 快捷AI 模型训练 高级画板 AI应用 工作流
关于TA
实验室 排行榜 AI聊天 AI博客 AI新闻
帮助
教程 客服
获取应用
icon
Download on the
APP Store
icon
GET IT ON
Google Play
关注我们
iconiconiconiconiconiconiconicon
© 2025 SeaArt, Inc.
版权政策
《条款》
《隐私政策》 特定商取引法 資金決済法に基づく表示
更多