Skip to content

Commit 2066b65

Browse files
authored
bug fix
expression should be expanded when the batch size larger than 1
1 parent bb595ae commit 2066b65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

smplx/body_models.py

+1
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,7 @@ def forward(
12351235
scale = int(batch_size / betas.shape[0])
12361236
if scale > 1:
12371237
betas = betas.expand(scale, -1)
1238+
expression = expression.expand(scale, -1)
12381239
shape_components = torch.cat([betas, expression], dim=-1)
12391240

12401241
shapedirs = torch.cat([self.shapedirs, self.expr_dirs], dim=-1)

0 commit comments

Comments
 (0)