Spaces:
Running
on
Zero
Running
on
Zero
Update src/pixel3dmm/tracking/flame/lbs.py
Browse files
src/pixel3dmm/tracking/flame/lbs.py
CHANGED
@@ -209,8 +209,7 @@ def lbs(betas, pose, v_template, shapedirs, posedirs, J_regressor, parents,
|
|
209 |
|
210 |
batch_size = max(betas.shape[0], pose.shape[0])
|
211 |
|
212 |
-
|
213 |
-
device = betas.device
|
214 |
|
215 |
# Add shape contribution
|
216 |
v_shaped = v_template + blend_shapes(betas, shapedirs)
|
|
|
209 |
|
210 |
batch_size = max(betas.shape[0], pose.shape[0])
|
211 |
|
212 |
+
device = betas.get_device()
|
|
|
213 |
|
214 |
# Add shape contribution
|
215 |
v_shaped = v_template + blend_shapes(betas, shapedirs)
|