forbidden characters fix

pull/87/head
Alexey Borsky 2023-05-06 03:55:09 +03:00
parent ef5dca6d99
commit 31a8dc71d8
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ def start_process(*args):
sdcn_anim_tmp.total_frames = int(sdcn_anim_tmp.input_video.get(cv2.CAP_PROP_FRAME_COUNT))
# Create an output video file with the same fps, width, and height as the input video
output_video_name = f'outputs/sd-cn-animation/vid2vid/{datetime.datetime.now().strftime("%Y-%m-%d_%H:%M:%S")}.mp4'
output_video_name = f'outputs/sd-cn-animation/vid2vid/{datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")}.mp4'
os.makedirs(os.path.dirname(output_video_name), exist_ok=True)
sdcn_anim_tmp.output_video = cv2.VideoWriter(output_video_name, cv2.VideoWriter_fourcc(*'mp4v'), sdcn_anim_tmp.fps, (args_dict['width'], args_dict['height']))