‘scipy.spatial.transform._rotation.Rotation‘ object has no attribute ‘as_dcm‘

新版api换了,

将 as_dcm 改成 as_matrix 即可

    rot_matrix = torch.from_numpy(R.from_euler('y', 180.0, degrees=True).as_matrix()).float().to(self.device)

你可能感兴趣的:(python基础,scipy,python)