mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-21 21:58:47 +00:00
auto_encoder: swap x/y names when generating tiles
Cosmetic change
This commit is contained in:
parent
b42881e54e
commit
245f51393e
|
@ -419,13 +419,13 @@ class LatentDiffusionAutoencoder(Chain):
|
||||||
"""
|
"""
|
||||||
tiles: list[_Tile] = []
|
tiles: list[_Tile] = []
|
||||||
|
|
||||||
for y in range(0, size.width, tile_size.width - overlap):
|
for x in range(0, size.width, tile_size.width - overlap):
|
||||||
for x in range(0, size.height, tile_size.height - overlap):
|
for y in range(0, size.height, tile_size.height - overlap):
|
||||||
tile = _Tile(
|
tile = _Tile(
|
||||||
top=max(0, x),
|
top=max(0, y),
|
||||||
left=max(0, y),
|
left=max(0, x),
|
||||||
bottom=min(size.height, x + tile_size.height),
|
bottom=min(size.height, y + tile_size.height),
|
||||||
right=min(size.width, y + tile_size.width),
|
right=min(size.width, x + tile_size.width),
|
||||||
)
|
)
|
||||||
tiles.append(tile)
|
tiles.append(tile)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue