clear CUDA cache after swapping
on low VRAM + ffmpeg cuda acceleration, clearing cache prevent cuda out-of-memory error
This commit is contained in:
parent
6daee96029
commit
c59400f6a6
@ -209,6 +209,7 @@ def start(preview_callback = None):
|
|||||||
process_video_multi_cores(args.source_img, args.frame_paths)
|
process_video_multi_cores(args.source_img, args.frame_paths)
|
||||||
else:
|
else:
|
||||||
process_video(args.source_img, args.frame_paths)
|
process_video(args.source_img, args.frame_paths)
|
||||||
|
torch.cuda.empty_cache()
|
||||||
status("creating video...")
|
status("creating video...")
|
||||||
create_video(video_name, exact_fps, output_dir)
|
create_video(video_name, exact_fps, output_dir)
|
||||||
status("adding audio...")
|
status("adding audio...")
|
||||||
|
Loading…
Reference in New Issue
Block a user