Skip to content

u/UnicornLock

In this archive from Aug 2022 to Nov 2026

3
posts
91
comments
6
media
823
score

Top posts

Top comments

https://github.com/sd-webui/stable-diffusion-webui/pull/911 Pull request pending, in the meantime you can use my repo or apply the patch yourself.

I added a --tiling option parameter to the Gradio web UI which patches all models to use padding_mode='circular'. This causes SD to generate tiling images natively, in one go, without extra processing.

It's a parameter because it requires the models to be reinitialized (as far as I know) so you need to restart anyways.

Code modified from https://gitlab.com/-/snippets/2395088

Promps were very basic "A heap of cute cats, oil painting" "paper marbling" "clouds" "breebleblox". No need to instruct it to generate textures or anything, that doesn't seem to help. Be warned, generating tiles of things that shouldn't be tiled can cause nightmares.

42 points

It's a pytorch feature for convolution. Convolution updates every pixel based on a square of pixels around it. SD does this iteratively with the neural network. For pixels at the edge you have to make up data to have input for the "pixels" outside the image. By default you just add black pixels. That's efficient, and it's how the model is trained. I think it also adds information about the image borders so it can learn something about composition. There are other options, one is to use the pixels from the other side of the image. Wrapping around like a pacman maze. This naturally creates tiling images.

19 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.