linoyts HF Staff commited on
Commit
527a615
·
verified ·
1 Parent(s): ad80429

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.vae_temporal_compression_ratio)
25
- width = width - (width % pipe.vae_temporal_compression_ratio)
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