jhj0517
commited on
Commit
·
0111784
1
Parent(s):
90303f6
Remove meaningless parts
Browse files
modules/live_portrait/live_portrait_inferencer.py
CHANGED
|
@@ -289,26 +289,6 @@ class LivePortraitInferencer:
|
|
| 289 |
|
| 290 |
new_es = ExpressionSet(es=s_es)
|
| 291 |
|
| 292 |
-
if i < cmd_length:
|
| 293 |
-
cmd = cmd_list[cmd_idx]
|
| 294 |
-
if 0 < cmd.change:
|
| 295 |
-
cmd.change -= 1
|
| 296 |
-
c_i_es.add(cmd.es)
|
| 297 |
-
c_i_es.sub(c_o_es)
|
| 298 |
-
elif 0 < cmd.keep:
|
| 299 |
-
cmd.keep -= 1
|
| 300 |
-
|
| 301 |
-
new_es.add(c_i_es)
|
| 302 |
-
|
| 303 |
-
if cmd.change == 0 and cmd.keep == 0:
|
| 304 |
-
cmd_idx += 1
|
| 305 |
-
if cmd_idx < len(cmd_list):
|
| 306 |
-
c_o_es = ExpressionSet(es=c_i_es)
|
| 307 |
-
cmd = cmd_list[cmd_idx]
|
| 308 |
-
c_o_es.div(cmd.change)
|
| 309 |
-
elif 0 < cmd_length:
|
| 310 |
-
new_es.add(c_i_es)
|
| 311 |
-
|
| 312 |
if i < driving_length:
|
| 313 |
d_i_info = self.driving_values[i]
|
| 314 |
d_i_r = torch.Tensor([d_i_info['pitch'], d_i_info['yaw'], d_i_info['roll']])#.float().to(device="cuda:0")
|
|
|
|
| 289 |
|
| 290 |
new_es = ExpressionSet(es=s_es)
|
| 291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
if i < driving_length:
|
| 293 |
d_i_info = self.driving_values[i]
|
| 294 |
d_i_r = torch.Tensor([d_i_info['pitch'], d_i_info['yaw'], d_i_info['roll']])#.float().to(device="cuda:0")
|