mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-23 09:46:00 +00:00
Silence ruff N817 on scipy Rotation import
This commit is contained in:
@@ -210,9 +210,9 @@ class SmplForwardKinematics:
|
|||||||
root_quat = smpl_root_ytoz_up(root_quat)
|
root_quat = smpl_root_ytoz_up(root_quat)
|
||||||
global_orient_new = quat_to_aa(root_quat)
|
global_orient_new = quat_to_aa(root_quat)
|
||||||
|
|
||||||
full_pose = np.concatenate(
|
full_pose = np.concatenate([global_orient_new, body_pose, np.zeros(3 * self.n_joints - 66)]).reshape(
|
||||||
[global_orient_new, body_pose, np.zeros(3 * self.n_joints - 66)]
|
self.n_joints, 3
|
||||||
).reshape(self.n_joints, 3)
|
)
|
||||||
joints = self._fk(full_pose) # (24, 3)
|
joints = self._fk(full_pose) # (24, 3)
|
||||||
|
|
||||||
# Canonicalize: strip SMPL base rot and the root orientation.
|
# Canonicalize: strip SMPL base rot and the root orientation.
|
||||||
|
|||||||
Reference in New Issue
Block a user