forbidden characters fix
parent
ef5dca6d99
commit
31a8dc71d8
|
|
@ -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))
|
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
|
# 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)
|
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']))
|
sdcn_anim_tmp.output_video = cv2.VideoWriter(output_video_name, cv2.VideoWriter_fourcc(*'mp4v'), sdcn_anim_tmp.fps, (args_dict['width'], args_dict['height']))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue