vinthony commited on
Commit
3d20599
1 Parent(s): b400055

Update modules/sadtalker_test.py

Browse files
Files changed (1) hide show
  1. modules/sadtalker_test.py +3 -0
modules/sadtalker_test.py CHANGED
@@ -92,6 +92,9 @@ class SadTalker():
92
  video_name = data['video_name']
93
  print(f'The generated video is named {video_name} in {save_dir}')
94
 
 
 
 
95
  if use_enhancer:
96
  return os.path.join(save_dir, video_name+'_enhanced.mp4'), os.path.join(save_dir, video_name+'_enhanced.mp4')
97
 
 
92
  video_name = data['video_name']
93
  print(f'The generated video is named {video_name} in {save_dir}')
94
 
95
+ torch.cuda.empty_cache()
96
+ torch.cuda.synchronize()
97
+
98
  if use_enhancer:
99
  return os.path.join(save_dir, video_name+'_enhanced.mp4'), os.path.join(save_dir, video_name+'_enhanced.mp4')
100