jhj0517
commited on
Commit
·
919d069
1
Parent(s):
7f7cda2
Fix path
Browse files
modules/utils/video_helper.py
CHANGED
@@ -7,8 +7,8 @@ from dataclasses import dataclass
|
|
7 |
import re
|
8 |
from pathlib import Path
|
9 |
|
10 |
-
from modules.utils.constants import SOUND_FILE_EXT, VIDEO_FILE_EXT, IMAGE_FILE_EXT
|
11 |
-
from modules.utils.paths import TEMP_VIDEO_FRAMES_DIR, TEMP_VIDEO_OUT_FRAMES_DIR
|
12 |
|
13 |
|
14 |
@dataclass
|
@@ -153,7 +153,7 @@ def create_video_from_frames(
|
|
153 |
raise "frames_dir does not exist"
|
154 |
|
155 |
if output_dir is None:
|
156 |
-
output_dir =
|
157 |
os.makedirs(output_dir, exist_ok=True)
|
158 |
|
159 |
frame_img_mime_type = ".png"
|
|
|
7 |
import re
|
8 |
from pathlib import Path
|
9 |
|
10 |
+
from modules.utils.constants import SOUND_FILE_EXT, VIDEO_FILE_EXT, IMAGE_FILE_EXT
|
11 |
+
from modules.utils.paths import TEMP_VIDEO_FRAMES_DIR, TEMP_VIDEO_OUT_FRAMES_DIR, OUTPUTS_VIDEOS_DIR
|
12 |
|
13 |
|
14 |
@dataclass
|
|
|
153 |
raise "frames_dir does not exist"
|
154 |
|
155 |
if output_dir is None:
|
156 |
+
output_dir = OUTPUTS_VIDEOS_DIR
|
157 |
os.makedirs(output_dir, exist_ok=True)
|
158 |
|
159 |
frame_img_mime_type = ".png"
|