alexnasa commited on
Commit
2b8469f
·
verified ·
1 Parent(s): 8355ef8

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
- # after: get the device index (an int), which Dynamo can capture
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)