pytorch-ddpm icon indicating copy to clipboard operation
pytorch-ddpm copied to clipboard

Question about the image size

Open DongyangHuLi opened this issue 2 years ago • 1 comments

Thanks for sharing the code! I'm confused about the size of the image input from the diffusion model. In the code why limit the height and width of the image must be equal, can not equal? Looking forward to your reply!

DongyangHuLi avatar Feb 16 '23 02:02 DongyangHuLi

The height and width of the image do not need to be equal, and this can be accomplished by updating the UNet model.

Another thing to consider is the downsampling and upsampling of UNet, which may cause the input size to differ from the output size if the dimensions are not divisible by 2.

w86763777 avatar Mar 15 '23 05:03 w86763777