Integrated-Design-Diffusion-Model icon indicating copy to clipboard operation
Integrated-Design-Diffusion-Model copied to clipboard

输入的是灰度图像 能输出灰度图像吗

Open Cherish420 opened this issue 2 years ago • 3 comments

大佬 我是用此模型来生成图像,输入是灰度图,在训练后 也能生成灰度图像吗? 我跑了200epoch 后生成的是彩色图像

Cherish420 avatar Jan 10 '24 09:01 Cherish420

模型设置的输入是3通道,如果你要练灰度图可能得自己修改源代码

chairc avatar Jan 10 '24 10:01 chairc

找到/model/networks中所有代码的def __init__(self, in_channel=3, out_channel=3, channel=None, time_channel=256, num_classes=None, image_size=64, device="cpu", act="silu"):,把in_channelout_channel设置为1就行

chairc avatar Jan 11 '24 12:01 chairc

感谢博主 我也看到这块代码 现在在尝试修改。

Cherish420 avatar Jan 12 '24 02:01 Cherish420