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")

# Define the prompt for the Japanese city scene
prompt = (
    "In a lively Japanese city street, the go-go dancer and Bitcoin trader are having a humorous adventure. The dancer, now in a quirky Japanese-themed outfit with Bitcoin accents, playfully interacts with street performers and vendors. They are surrounded by colorful neon signs and amusing cultural elements. The scene is vibrant and whimsical, with exaggerated expressions and playful poses. The lighting reflects the bustling city vibe, creating a humorous and lively atmosphere."
)

# Configuration settings
clip_guidance_scale = 16  # Slightly lower to add a playful feel
hr_scale = 3.0  # Balanced resolution
hr_upscaler = "R-ESRGAN"
latent_shift = torch.randn(1, 4, 64, 64) * 0.03  # Slight variation for humor
cross_attention_strength = 1.5  # Focus on playful details
shallow_depth_of_field = True  # Emphasize interaction
lighting_style = "bright and colorful"  # Vibrant lighting effects
color_match_strength = 1.5  # Enhanced color matching
perlin_noise_scale = 0.03  # Subtle noise for texture
fractal_noise = False

# Generate the image
image = pipe(
    prompt=prompt,
    clip_guidance_scale=clip_guidance_scale,
    hr_scale=hr_scale,
    hr_upscaler=hr_upscaler,
    latent_shift=latent_shift,
    cross_attention_strength=cross_attention_strength,
    shallow_depth_of_field=shallow_depth_of_field,
    lighting_style=lighting_style,
    color_match_strength=color_match_strength,
    noise="perlin",
    noise_scale=perlin_noise_scale,
    fractal_noise=fractal_noise
).images[0]

# Save the generated image
image.save("japanese_city_adventure.png")
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") # Define the prompt for the Japanese city scene prompt = ( "In a lively Japanese city street , the go-go dancer and Bitcoin trader are having a humorous adventure . The dancer , now in a quirky Japanese-themed outfit with Bitcoin accents , playfully interacts with street performers and vendors . They are surrounded by colorful neon signs and amusing cultural elements . The scene is vibrant and whimsical , with exaggerated expressions and playful poses . The lighting reflects the bustling city vibe , creating a humorous and lively atmosphere . " ) # Configuration settings clip_guidance_scale = 16 # Slightly lower to add a playful feel hr_scale = 3 . 0 # Balanced resolution hr_upscaler = "R-ESRGAN" latent_shift = torch . randn(1 , 4 , 64 , 64) * 0 . 03 # Slight variation for humor cross_attention_strength = 1 . 5 # Focus on playful details shallow_depth_of_field = True # Emphasize interaction lighting_style = "bright and colorful" # Vibrant lighting effects color_match_strength = 1 . 5 # Enhanced color matching perlin_noise_scale = 0 . 03 # Subtle noise for texture fractal_noise = False # Generate the image image = pipe( prompt=prompt , clip_guidance_scale=clip_guidance_scale , hr_scale=hr_scale , hr_upscaler=hr_upscaler , latent_shift=latent_shift , cross_attention_strength=cross_attention_strength , shallow_depth_of_field=shallow_depth_of_field , lighting_style=lighting_style , color_match_strength=color_match_strength , noise="perlin" , noise_scale=perlin_noise_scale , fractal_noise=fractal_noise ) . images[0] # Save the generated image image . save("japanese_city_adventure . png")
信息
提示词
from stable_diffusion import StableDiffusionPipeline import torch from PIL import Image # Load the Stable Diffusion model pipe = StableDiffusionPipeline.from_pretrained("stable-diffusion-v1-4") # Define the prompt for the Japanese city scene prompt = ( "In a lively Japanese city street, the go-go dancer and Bitcoin trader are having a humorous adventure. The dancer, now in a quirky Japanese-themed outfit with Bitcoin accents, playfully interacts with street performers and vendors. They are surrounded by colorful neon signs and amusing cultural elements. The scene is vibrant and whimsical, with exaggerated expressions and playful poses. The lighting reflects the bustling city vibe, creating a humorous and lively atmosphere." ) # Configuration settings clip_guidance_scale = 16 # Slightly lower to add a playful feel hr_scale = 3.0 # Balanced resolution hr_upscaler = "R-ESRGAN" latent_shift = torch.randn(1, 4, 64, 64) * 0.03 # Slight variation for humor cross_attention_strength = 1.5 # Focus on playful details shallow_depth_of_field = True # Emphasize interaction lighting_style = "bright and colorful" # Vibrant lighting effects color_match_strength = 1.5 # Enhanced color matching perlin_noise_scale = 0.03 # Subtle noise for texture fractal_noise = False # Generate the image image = pipe( prompt=prompt, clip_guidance_scale=clip_guidance_scale, hr_scale=hr_scale, hr_upscaler=hr_upscaler, latent_shift=latent_shift, cross_attention_strength=cross_attention_strength, shallow_depth_of_field=shallow_depth_of_field, lighting_style=lighting_style, color_match_strength=color_match_strength, noise="perlin", noise_scale=perlin_noise_scale, fractal_noise=fractal_noise ).images[0] # Save the generated image image.save("japanese_city_adventure.png")
文本强度
7
步骤
25
采集器
euler
随机种子
1331793610
调度器
karras
图片尺寸
688 X 1024
模型
SeaArt Infinity
创作
尺寸
688X1024
日期
Aug 26, 2024
模式
实验室
类型
cell
模型 & 风格
SeaArt Infinity
模型
SeaArt Infinity
#写实
#SeaArt Infinity
共 0 条评论
0
2
0

SeaArt快捷AI应用

ai_video_generationimg
AI视频生成

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

face_swap_titleimg
免费在线换脸

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

dance_vidimg
AI舞蹈视频生成器

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

DisneyFilter_top_titleimg
迪士尼滤镜

立即将你的照片转化为迪士尼角色。

fuse_anyoneimg
AI图像融合

使用AI图像融合将两张图像结合成一张惊艳的视觉作品。

vrtry_cloth_h1img
虚拟试衣

使用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.
版权政策
《条款》
《隐私政策》 特定商取引法 資金決済法に基づく表示
更多