AvatarResurrectionChatbot commited on
Commit
f3022b1
·
verified ·
1 Parent(s): e50e2f2

Update idle_generator.py

Browse files
Files changed (1) hide show
  1. idle_generator.py +7 -2
idle_generator.py CHANGED
@@ -191,12 +191,17 @@ class IdleVideoGenerator:
191
  fade_multiplier = (total_frames - t - 1) / float(fade_frames)
192
  pose_control[:, t, :] *= fade_multiplier
193
 
194
- # Run inference
 
195
  with torch.no_grad():
196
  out = self.model.inference(
197
  data,
198
  a_cfg_scale=1.0,
199
- pose_control=pose_control,
 
 
 
 
200
  )
201
 
202
  # Save video
 
191
  fade_multiplier = (total_frames - t - 1) / float(fade_frames)
192
  pose_control[:, t, :] *= fade_multiplier
193
 
194
+ # Run inference — pass pose_control via data['p']
195
+ data['p'] = pose_control
196
  with torch.no_grad():
197
  out = self.model.inference(
198
  data,
199
  a_cfg_scale=1.0,
200
+ r_cfg_scale=1.0,
201
+ e_cfg_scale=1.0,
202
+ emo='S2E',
203
+ nfe=7,
204
+ seed=random.randint(1, 10000),
205
  )
206
 
207
  # Save video