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