Open denizbinay opened 2 years ago
Okay, here it is. Add this Code to /notebooks/stable-diffusion/scripts/img2img.py
at line 34.
def patch_conv(klass):
init = klass.__init__
def __init__(self, *args, **kwargs):
return init(self, *args, **kwargs, padding_mode='circular')
klass.__init__ = __init__
for klass in [torch.nn.Conv2d, torch.nn.ConvTranspose2d]:
patch_conv(klass)
Source: https://github.com/sd-webui/stable-diffusion-webui/discussions/224#discussioncomment-3494819
I found this code on gitlab to make the output seamless tileable. It works with diffusers. But unfortunately I don't know how to include it here. Any Ideas?