Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
403b503
1
Parent(s):
1e0d3f4
update limits
Browse files
LHM/utils/ffmpeg_utils.py
CHANGED
|
@@ -52,7 +52,8 @@ def images_to_video(images, output_path, fps, gradio_codec: bool, verbose=False,
|
|
| 52 |
# reshape to limit the export time
|
| 53 |
if width > 1200 or height > 1200 or images.shape[0] > 200:
|
| 54 |
frames.append(cv2.resize(frame, (width // 2, height // 2)))
|
| 55 |
-
|
|
|
|
| 56 |
# limit the frames directly @NOTE huggingface only!
|
| 57 |
frames = frames[:200]
|
| 58 |
|
|
|
|
| 52 |
# reshape to limit the export time
|
| 53 |
if width > 1200 or height > 1200 or images.shape[0] > 200:
|
| 54 |
frames.append(cv2.resize(frame, (width // 2, height // 2)))
|
| 55 |
+
else:
|
| 56 |
+
frames.append(frame)
|
| 57 |
# limit the frames directly @NOTE huggingface only!
|
| 58 |
frames = frames[:200]
|
| 59 |
|