Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- uses: isort/isort-action@master
21 changes: 8 additions & 13 deletions aitviewer/renderables/smpl.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Copyright (C) 2023 ETH Zurich, Manuel Kaufmann, Velko Vechev, Dario Mylonopoulos
import os
import pickle as pkl
Expand All @@ -18,7 +18,9 @@
from aitviewer.utils import to_numpy as c2c
from aitviewer.utils import to_torch
from aitviewer.utils.decorators import hooked
from aitviewer.utils.so3 import aa2euler_numpy
from aitviewer.utils.so3 import (
aa2euler_numpy,
)
from aitviewer.utils.so3 import aa2rot_torch as aa2rot
from aitviewer.utils.so3 import (
euler2aa_numpy,
Expand Down Expand Up @@ -157,18 +159,11 @@

# First convert the relative joint angles to global joint angles in rotation matrix form.
if self.smpl_layer.model_type != "flame":
if self.smpl_layer.model_type != "mano":
global_oris = local_to_global(
torch.cat([self.poses_root, self.poses_body, self.poses_left_hand, self.poses_right_hand], dim=-1),
self.skeleton[:, 0],
output_format="rotmat",
)
else:
global_oris = local_to_global(
torch.cat([self.poses_root, self.poses_body], dim=-1),
self.skeleton[:, 0],
output_format="rotmat",
)
global_oris = local_to_global(
torch.cat([self.poses_root, self.poses_body], dim=-1),
self.skeleton[:, 0],
output_format="rotmat",
)
global_oris = c2c(global_oris.reshape((self.n_frames, -1, 3, 3)))
else:
global_oris = np.tile(np.eye(3), self.joints.shape[:-1])[np.newaxis]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"visualization",
],
platforms=["any"],
python_requires=">=3.7,<3.11",
python_requires=">=3.7,<3.13",
install_requires=requirements,
project_urls={
"Documentation": "https://eth-ait.github.io/aitviewer/",
Expand Down
Loading