Spaces:
Runtime error
Runtime error
Update app.py
Browse files20 unmodified lines212223242526272820 unmodified linesdef round_to_nearest_resolution_acceptable_by_vae(height, width):print("before rounding",height, width)height = height - (height % pipe.vae_temporal_compression_ratio)width = width - (width % pipe.vae_temporal_compression_ratio)print("after rounding",height, width)return height, width20 unmodified lines212223242526272820 unmodified linesdef round_to_nearest_resolution_acceptable_by_vae(height, width):print("before rounding",height, width)height = height - (height % pipe.vae_spatial_compression_ratio)width = width - (width % pipe.vae_spatial_compression_ratio)print("after rounding",height, width)return height, width
app.py+2-2