yuanzhi-zhu / DiffPIR

"Denoising Diffusion Models for Plug-and-Play Image Restoration", Yuanzhi Zhu, Kai Zhang, Jingyun Liang, Jiezhang Cao, Bihan Wen, Radu Timofte, Luc Van Gool.
https://yuanzhi-zhu.github.io/DiffPIR/
MIT License
368 stars 31 forks source link

for RuntimeError #22

Open Bulinglife opened 10 months ago

Bulinglife commented 10 months ago

您好,感谢您百忙之中阅读评论。 我在运行代码时更换了测试集,出现如下报错 RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 66 but got size 67 for tensor number 1 in the list. 想请教一下是什么原因?

yuanzhi-zhu commented 10 months ago

大概率是图片尺寸不对?这个方法默认的输出图片尺寸是256*256的,这是来自使用的模型的限制