Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ MAX_IMAGE_SIZE = 2048
|
|
21 |
|
22 |
def round_to_nearest_resolution_acceptable_by_vae(height, width):
|
23 |
print("before rounding",height, width)
|
24 |
-
height = height - (height % pipe.
|
25 |
-
width = width - (width % pipe.
|
26 |
print("after rounding",height, width)
|
27 |
return height, width
|
28 |
|
|
|
21 |
|
22 |
def round_to_nearest_resolution_acceptable_by_vae(height, width):
|
23 |
print("before rounding",height, width)
|
24 |
+
height = height - (height % pipe.vae_spatial_compression_ratio)
|
25 |
+
width = width - (width % pipe.vae_spatial_compression_ratio)
|
26 |
print("after rounding",height, width)
|
27 |
return height, width
|
28 |
|