stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Patch UNet Forward to support resolutions that are not multiples of 64

Open aliencaocao opened this issue 2 years ago • 0 comments

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

aliencaocao avatar Nov 23 '22 10:11 aliencaocao