Fix tiled_encode latent x-overlap off-by-one (use [j-1] for left neighbor)
This commit is contained in:
parent
65e80be1cf
commit
a0274a9868
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ class MiniMaxH3VideoVAEEncoder(nn.Module):
|
|||
if i > 0:
|
||||
tile = self.blend(rows[i - 1][j], tile, latent_y_overlap[i - 1], dim=-2)
|
||||
if j > 0:
|
||||
tile = self.blend(row[j - 1], tile, latent_x_overlap[j], dim=-1)
|
||||
tile = self.blend(row[j - 1], tile, latent_x_overlap[j - 1], dim=-1)
|
||||
if i < len(rows) - 1:
|
||||
tile = tile[..., :-latent_y_overlap[i], :]
|
||||
if j < len(row) - 1:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue