Compare
Sorry, something went wrong.
No results found
feat: add VAE encoding tiling support and adaptive overlap (#484)
* implement tiling vae encode support
* Tiling (vae/upscale): adaptative overlap
* Tiling: fix edge case
* Tiling: fix crash when less than 2 tiles per dim
* remove extra dot
* Tiling: fix edge cases for adaptative overlap
* tiling: fix edge case
* set vae tile size via env var
* vae tiling: refactor again, base on smaller buffer for alignment
* Use bigger tiles for encode (to match compute buffer size)
* Fix edge case when tile is bigger than latent
* non-square VAE tiling (#3)
* refactor tile number calculation
* support non-square tiles
* add env var to change tile overlap
* add safeguards and better error messages for SD_TILE_OVERLAP
* add safeguards and include overlapping factor for SD_TILE_SIZE
* avoid rounding issues when specifying SD_TILE_SIZE as a factor
* lower SD_TILE_OVERLAP limit
* zero-init empty output buffer
* Fix decode latent size
* fix encode
* tile size params instead of env
* Tiled vae parameter validation (#6)
* avoid crash with invalid tile sizes, use 0 for default
* refactor default tile size, limit overlap factor
* remove explicit parameter for relative tile size
* limit encoding tile to latent size
* unify code style and format code
* update docs
* fix get_tile_sizes in decode_first_stage
---------
Co-authored-by: Wagner Bruna <wbruna@users.noreply.github.com>
Co-authored-by: leejet <leejet714@gmail.com>