Spaces:
Paused
Paused
Update modules/sadtalker_test.py
Browse files
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 |
|