稳定的扩散有时会产生带有奇怪线条的图像

问题描述 投票:0回答:1

当我使用 Huggingface 稳定扩散管道生成图像时,有时会生成奇怪的绿色、黄色和红色线条,如图所示。

有谁知道其中的原因,以及如何删除此行?

重现:

model_id = "../stable-diffusion-2"   # I download stable-diffusion-2's weight and code
prompt = "best quality, extremely detailed"

scheduler = LMSDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
image = pipe(prompt).images[0]

line huggingface stable-diffusion
1个回答
0
投票

因为你的提示不包含否定提示。你可以尝试一些详细的提示,关于很多属性。你可以访问这个网站来了解一些关于稳定扩散的内容。

提示需要在稳定扩散中写得非常非常仔细 https://bedtimestoriess.com/

© www.soinside.com 2019 - 2024. All rights reserved.