vinthony commited on
Commit
c17e787
1 Parent(s): f12864f

Update modules/sadtalker_test.py

Browse files
Files changed (1) hide show
  1. modules/sadtalker_test.py +1 -0
modules/sadtalker_test.py CHANGED
@@ -106,6 +106,7 @@ class SadTalker():
106
 
107
  torch.cuda.empty_cache()
108
  torch.cuda.synchronize()
 
109
 
110
  if use_enhancer:
111
  return os.path.join(save_dir, video_name+'_enhanced.mp4'), os.path.join(save_dir, video_name+'_enhanced.mp4')
 
106
 
107
  torch.cuda.empty_cache()
108
  torch.cuda.synchronize()
109
+ import gc; gc.collect()
110
 
111
  if use_enhancer:
112
  return os.path.join(save_dir, video_name+'_enhanced.mp4'), os.path.join(save_dir, video_name+'_enhanced.mp4')