Update modules/sadtalker_test.py
Browse files
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')
|