Latent Diffusion (Rombach et al., 2022) runs the diffusion process in the compressed latent space of an autoencoder rather than on full-resolution pixels. A factor-8 autoencoder turns a 512 image into a 64 by 64 latent grid.
Implement latent_shape(h, w, f), the spatial size of the latent after downsampling by f.
Floor-divide each side by the factor.
No results yet
Run your code to check it against the examples, or submit to run every test.