Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ def sample(
|
|
| 55 |
torch.cuda.empty_cache()
|
| 56 |
return video_path, seed
|
| 57 |
|
| 58 |
-
def resize_image(image, output_size=(1024,
|
| 59 |
# Calculate aspect ratios
|
| 60 |
target_aspect = output_size[0] / output_size[1] # Aspect ratio of the desired size
|
| 61 |
image_aspect = image.width / image.height # Aspect ratio of the original image
|
|
|
|
| 55 |
torch.cuda.empty_cache()
|
| 56 |
return video_path, seed
|
| 57 |
|
| 58 |
+
def resize_image(image, output_size=(1024, 768)):
|
| 59 |
# Calculate aspect ratios
|
| 60 |
target_aspect = output_size[0] / output_size[1] # Aspect ratio of the desired size
|
| 61 |
image_aspect = image.width / image.height # Aspect ratio of the original image
|