stable-diffusion-webui
stable-diffusion-webui copied to clipboard
Patch UNet Forward to support resolutions that are not multiples of 64
As raised by serval people including myself in https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/4906 and https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/4094, I adopted the trick mentioned in https://github.com/CompVis/stable-diffusion/issues/60#issuecomment-1240294667 and patched the forward() function of the UNet to remove this restriction.
I also modified the UI to no longer step in 64 in resolution-related sliders since this is no longer a limitation.
Closes https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/4906