Spaces:
Sleeping
Sleeping
Update difpoint/inference.py
Browse files- difpoint/inference.py +1 -1
difpoint/inference.py
CHANGED
@@ -274,7 +274,7 @@ class Inferencer(object):
|
|
274 |
# 2024.06.26
|
275 |
@torch.no_grad()
|
276 |
def generate_with_audio_img(self, upload_audio_path, tts_audio_path, audio_type, image_path, smoothed_pitch, smoothed_yaw, smoothed_roll, smoothed_t, save_path='results'):
|
277 |
-
|
278 |
if audio_type == 'upload':
|
279 |
audio_path = upload_audio_path
|
280 |
elif audio_type == 'tts':
|
|
|
274 |
# 2024.06.26
|
275 |
@torch.no_grad()
|
276 |
def generate_with_audio_img(self, upload_audio_path, tts_audio_path, audio_type, image_path, smoothed_pitch, smoothed_yaw, smoothed_roll, smoothed_t, save_path='results'):
|
277 |
+
self.live_portrait_pipeline.init()
|
278 |
if audio_type == 'upload':
|
279 |
audio_path = upload_audio_path
|
280 |
elif audio_type == 'tts':
|