Commit
·
c57ef32
1
Parent(s):
ae211e5
fix bug
Browse files
LHM/utils/ffmpeg_utils.py
CHANGED
|
@@ -52,7 +52,7 @@ 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] > 400:
|
| 54 |
# frames.append(cv2.resize(frame, (width // 2, height // 2)))
|
| 55 |
-
|
| 56 |
# limit the frames directly @NOTE huggingface only!
|
| 57 |
frames = frames[:300]
|
| 58 |
|
|
|
|
| 52 |
# reshape to limit the export time
|
| 53 |
# if width > 1200 or height > 1200 or images.shape[0] > 400:
|
| 54 |
# frames.append(cv2.resize(frame, (width // 2, height // 2)))
|
| 55 |
+
frames.append(frame)
|
| 56 |
# limit the frames directly @NOTE huggingface only!
|
| 57 |
frames = frames[:300]
|
| 58 |
|