omerbt / MultiDiffusion

Official Pytorch Implementation for "MultiDiffusion: Fusing Diffusion Paths for Controlled Image Generation" presenting "MultiDiffusion" (ICML 2023)
https://multidiffusion.github.io/
979 stars 57 forks source link

get_views returns negative indices for values less than 512 #11

Closed JulianKnodt closed 1 year ago

JulianKnodt commented 1 year ago

https://github.com/omerbt/MultiDiffusion/blob/f91b1c25fd14826d46f0f21c6f099b57fc446737/panorama.py#L24

get_views with a value of 256 does not return correct values. Specifically, it will lead to a negative number of blocks: (256/8 - 64) // 8 + 1 = -3

JulianKnodt commented 1 year ago

Closed because I realize that this is expecting the non-latent space size, which must always be >= 512