Skip to content

Commit 2fad762

Browse files
committed
revert changes to tile size
1 parent a8f277e commit 2fad762

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/diffusers/models/autoencoders/autoencoder_dc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,12 @@ def __init__(
479479
self.use_tiling = False
480480

481481
# The minimal tile height and width for spatial tiling to be used
482-
self.tile_sample_min_height = 1024
483-
self.tile_sample_min_width = 1024
482+
self.tile_sample_min_height = 512
483+
self.tile_sample_min_width = 512
484484

485485
# The minimal distance between two spatial tiles
486-
self.tile_sample_stride_height = 896
487-
self.tile_sample_stride_width = 896
486+
self.tile_sample_stride_height = 448
487+
self.tile_sample_stride_width = 448
488488

489489
self.tile_latent_min_height = self.tile_sample_min_height // self.spatial_compression_ratio
490490
self.tile_latent_min_width = self.tile_sample_min_width // self.spatial_compression_ratio

0 commit comments

Comments
 (0)