check torch gpu before clearing cache
This commit is contained in:
parent
c59400f6a6
commit
3668360520
@ -209,7 +209,8 @@ def start(preview_callback = None):
|
||||
process_video_multi_cores(args.source_img, args.frame_paths)
|
||||
else:
|
||||
process_video(args.source_img, args.frame_paths)
|
||||
torch.cuda.empty_cache()
|
||||
if torch.cuda.is_available() and args.gpu_vendor in ['amd', 'nvidia']:
|
||||
torch.cuda.empty_cache()
|
||||
status("creating video...")
|
||||
create_video(video_name, exact_fps, output_dir)
|
||||
status("adding audio...")
|
||||
|
Loading…
Reference in New Issue
Block a user