模型:
警告:此模型含有情色内容!如果要避免不雅内容,请将 "nude, naked" 添加到负面提示中。
您可以在提示中添加图片以使生成的结果更加逼真。对于某些提示,长宽比不是正方形可能效果更好。如果您想要人像照片,请尝试使用垂直长宽比。如果您想要风景照片,请尝试使用水平长宽比。此模型是基于 768x768 像素图像进行训练的,因此使用 768x768 像素、640x896 像素、896x640 像素等尺寸效果较好。它也可以很好地处理更高分辨率,例如 768x1024 像素或 1024x768 像素。
您可以在 dreamlike.art 上免费使用此模型!
Download dreamlike-photoreal-2.0.ckpt (2.13GB)
Download dreamlike-photoreal-2.0.safetensors (2.13GB)
此模型可以像任何其他 Stable Diffusion 模型一样使用。有关更多信息,请查看 Stable Diffusion Pipeline 。
from diffusers import StableDiffusionPipeline
import torch
model_id = "dreamlike-art/dreamlike-photoreal-2.0"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "photo, a church in the middle of a field of crops, bright cinematic lighting, gopro, fisheye lens"
image = pipe(prompt).images[0]
image.save("./result.jpg")
本模型使用修改后的 CreativeML OpenRAIL-M 许可证授权。