Skip to content

Dragynrain/asymmetric-tiling-sd-webui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Asymmetric Tiling for Stable Diffusion WebUI & Forge

A script extension for stable-diffusion-webui and stable-diffusion-webui-forge to configure seamless image tiling independently for the X and Y axes.

Forked from tjm35/asymmetric-tiling-sd-webui (CC0 licensed) and rewritten to work with Forge's model architecture.

What's different from the original

The original extension does not work with Forge (see issue #16). Three changes were needed:

  1. isinstance() instead of exact type matching - Forge uses custom Conv2d subclasses (ForgeOperations.Conv2d in backend/operations.py). The original checked type(layer) == Conv2d which silently skipped every layer in Forge.

  2. Wraps forward() instead of _conv_forward() - Forge's custom Conv2d has two code paths; one calls super()._conv_forward() which bypasses instance-level method patches. Wrapping forward() itself works regardless of which path Forge takes.

  3. Patches the VAE too - The original patched all model modules at once via sd_model.modules(), which included the VAE. The Forge-compatible approach patches UNet and VAE separately. Without VAE patching, faint seam lines remain in the decoded image.

A1111 compatibility is preserved via fallback code paths.

Installation

From the Extensions tab in the WebUI:

  1. Go to "Install from URL"
  2. Paste: https://github.com/Dragynrain/asymmetric-tiling-sd-webui.git
  3. Click "Install"
  4. Restart the WebUI

Usage

  1. Open the Asymmetric tiling accordion on the txt2img or img2img tab
  2. Check Active
  3. Check Tile X and/or Tile Y as desired
  4. Generate as normal

While this script is active, the Tiling checkbox in the main UI will be ignored.

Like existing tiling options this won't guarantee seamless tiling 100% of the time, but it should manage it for most prompts. You can check that images tile seamlessly using online tools like Seamless Texture Check.

Compatibility

  • AUTOMATIC1111 stable-diffusion-webui
  • stable-diffusion-webui-forge (including SDXL, SD 1.5)

X axis tiling examples

00817-3274117678-midnight cityscape, stunning environment, wide-angle, massive scale, landscape, panoramic, lush vegetation, idyllic 01064-1316547214-(((domino run))), domino toppling, line of standing dominoes, domino cascade, domino effect, black dominos

Y Axis tiling examples

00840-2320166501-man climbing ladder, safety diagram01095-949590403-tree, thick branches, photograph, 80mm Sigma f1 4, studio quality, nature photography

License

CC0 1.0 Universal - same as the original.

About

Asymmetric tiling extension for Stable Diffusion WebUI & Forge - seamless texture tiling on X/Y axes independently

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages