@@ -405,7 +405,7 @@ def transform_normals(self, normals):
405
405
if normals .dim () not in [2 , 3 ]:
406
406
msg = "Expected normals to have dim = 2 or dim = 3: got shape %r"
407
407
raise ValueError (msg % (normals .shape ,))
408
- mat = self ._get_matrix_inverse ()[:, :3 , :3 ]
408
+ mat = self .inverse (). get_matrix ()[:, :3 , :3 ]
409
409
normals_out = _broadcast_bmm (normals , mat )
410
410
411
411
# This doesn't pass unit tests. TODO investigate further
@@ -435,7 +435,7 @@ def transform_shape_operator(self, shape_operators):
435
435
if shape_operators .dim () not in [3 , 4 ]:
436
436
msg = "Expected shape_operators to have dim = 3 or dim = 4: got shape %r"
437
437
raise ValueError (msg % (shape_operators .shape ,))
438
- mat = self ._get_matrix_inverse ()[:, :3 , :3 ]
438
+ mat = self .inverse (). get_matrix ()[:, :3 , :3 ]
439
439
shape_operators_out = _broadcast_bmm (mat .permute (0 , 2 , 1 ), _broadcast_bmm (shape_operators , mat ))
440
440
441
441
# When transform is (1, 4, 4) and shape_operator is (P, 3, 3) return
0 commit comments