YinuoGuo27 commited on
Commit
e7e49c2
·
verified ·
1 Parent(s): 86b4031

Update difpoint/inference.py

Browse files
Files changed (1) hide show
  1. 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
- #self.live_portrait_pipeline = FasterLivePortraitPipeline(cfg=self.inf_cfg, is_animal=False)
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':