模型:

dream-textures/texture-diffusion

英文

纹理扩散

这个DreamBooth模型是经过调整以适用于漫反射纹理的。它产生的纹理平坦,几乎没有可见的光照/阴影。

样本

以下是一些示例图片(生成步骤为50步)。

1235321 1236321 1237321
pbr uneven stone wall pbr dirt with weeds pbr bright white marble

用法

在提示中使用标记pbr来调用这种风格。

这个模型是为Blender的稳定扩散插件 Dream Textures 设计的。

你也可以在 🧨 diffusers 中使用它:

from diffusers import StableDiffusionPipeline
import torch

model_id = "dream-textures/texture-diffusion"

pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")

prompt = "pbr brick wall"
image = pipe(prompt).images[0]  
    
image.save("bricks.png")

训练细节

  • 基本模型: stabilityai/stable-diffusion-2-base
  • 分辨率:512
  • 先验损失权重:1.0
  • 类别提示:纹理
  • 批量大小:1
  • 学习率:1e-6
  • 精度:fp16
  • 步骤:4000
  • GPU:Tesla T4

数据集

这个模型是在 PolyHaven 中的278个CC0纹理上进行训练的。