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 prompt for Drama and Isekai genres with Bitcoin, Whale, and Shark
prompts = {
    "drama_isekai_bitcoin_whale_shark": (
        "In a dramatic isekai world, a young protagonist finds themselves in a fantastical realm where Bitcoin plays a crucial role in society. "
        "The scene captures the protagonist standing on a cliff, gazing at a majestic, otherworldly ocean where a colossal, benevolent whale with a Bitcoin symbol glowing on its back swims gracefully. "
        "The whale represents hope and power, while a sleek, mysterious shark with a Bitcoin logo on its fin lurks in the shadows of the ocean, hinting at hidden dangers. "
        "The protagonist, dressed in adventure-ready attire, looks contemplative and determined, reflecting the inner struggle and growth typical of a dramatic isekai journey. "
        "The background features a breathtaking, magical landscape with floating islands, enchanted forests, and a shimmering, star-studded sky, evoking the fantasy and wonder of the new world."
    )
}

# 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
B
Bena Millionaire
创作参数
记录
提示词
复制
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 prompt for Drama and Isekai genres with Bitcoin , Whale , and Shark prompts = { "drama_isekai_bitcoin_whale_shark": ( "In a dramatic isekai world , a young protagonist finds themselves in a fantastical realm where Bitcoin plays a crucial role in society . " "The scene captures the protagonist standing on a cliff , gazing at a majestic , otherworldly ocean where a colossal , benevolent whale with a Bitcoin symbol glowing on its back swims gracefully . " "The whale represents hope and power , while a sleek , mysterious shark with a Bitcoin logo on its fin lurks in the shadows of the ocean , hinting at hidden dangers . " "The protagonist , dressed in adventure-ready attire , looks contemplative and determined , reflecting the inner struggle and growth typical of a dramatic isekai journey . " "The background features a breathtaking , magical landscape with floating islands , enchanted forests , and a shimmering , star-studded sky , evoking the fantasy and wonder of the new world . " ) } # 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 prompt for Drama and Isekai genres with Bitcoin, Whale, and Shark prompts = { "drama_isekai_bitcoin_whale_shark": ( "In a dramatic isekai world, a young protagonist finds themselves in a fantastical realm where Bitcoin plays a crucial role in society. " "The scene captures the protagonist standing on a cliff, gazing at a majestic, otherworldly ocean where a colossal, benevolent whale with a Bitcoin symbol glowing on its back swims gracefully. " "The whale represents hope and power, while a sleek, mysterious shark with a Bitcoin logo on its fin lurks in the shadows of the ocean, hinting at hidden dangers. " "The protagonist, dressed in adventure-ready attire, looks contemplative and determined, reflecting the inner struggle and growth typical of a dramatic isekai journey. " "The background features a breathtaking, magical landscape with floating islands, enchanted forests, and a shimmering, star-studded sky, evoking the fantasy and wonder of the new world." ) } # 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
随机种子
2038529427
调度器
karras
图片尺寸
688 X 1024
模型
SeaArt Infinity
创作
尺寸
688X1024
日期
Aug 31, 2024
模式
实验室
类型
cell
模型 & 风格
SeaArt Infinity
模型
SeaArt Infinity
#动物
#SeaArt Infinity
共 0 条评论
0
10
0

SeaArt快捷AI应用

ai_video_generationimg
AI视频生成

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

face_swap_titleimg
免费在线换脸

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

vrtry_cloth_h1img
虚拟试衣

使用AI虚拟试穿任何类型的衣服。

anime2realityimg
动漫变写实

立即将你最喜欢的动漫角色变为写实风格。

cartoon_avatar_h1img
卡通头像制作器

立即将你的照片转化为独特的卡通头像。

ai_tools_4img
AI滤镜

让每张照片都成为艺术品

探索更多AI应用 

相关推荐

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