mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-23 09:46:00 +00:00
put axis-1
This commit is contained in:
@@ -251,7 +251,7 @@ class LiberoProcessorStep(ObservationProcessorStep):
|
|||||||
eef_axisangle = self._quat2axisangle(eef_quat) # (B, 3)
|
eef_axisangle = self._quat2axisangle(eef_quat) # (B, 3)
|
||||||
|
|
||||||
# Concatenate into a single state vector
|
# Concatenate into a single state vector
|
||||||
state = np.concatenate((eef_pos, eef_axisangle, gripper_qpos), axis=1)
|
state = np.concatenate((eef_pos, eef_axisangle, gripper_qpos), axis=-1)
|
||||||
|
|
||||||
# Convert to tensor
|
# Convert to tensor
|
||||||
state_tensor = torch.from_numpy(state).float()
|
state_tensor = torch.from_numpy(state).float()
|
||||||
|
|||||||
Reference in New Issue
Block a user