Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Commit 091f00b

Browse files
author
Ruilong Li
committed
fix SMPL name ordering bug in manual feature
1 parent eaa2c1f commit 091f00b

File tree

2 files changed

+26
-18
lines changed

2 files changed

+26
-18
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,15 @@ In practise, we run this step on a cluster, but are only able to provide the sin
174174
- SMPL-format body joint definition:
175175
```
176176
[
177-
"root",
178-
"left_hip", "left_knee", "left_foot", "left_toe",
179-
"right_hip", "right_knee", "right_foot", "right_toe",
180-
"waist", "spine", "chest", "neck", "head",
181-
"left_in_shoulder", "left_shoulder", "left_elbow", "left_wrist",
182-
"right_in_shoulder", "right_shoulder", "right_elbow", "right_wrist"
177+
"root",
178+
"lhip", "rhip", "belly",
179+
"lknee", "rknee", "spine",
180+
"lankle", "rankle", "chest",
181+
"ltoes", "rtoes", "neck",
182+
"linshoulder", "rinshoulder",
183+
"head", "lshoulder", "rshoulder",
184+
"lelbow", "relbow",
185+
"lwrist", "rwrist",
186+
"lhand", "rhand",
183187
]
184188
```

aist_plusplus/features/manual.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,16 @@
3434

3535

3636
SMPL_JOINT_NAMES = [
37-
"root",
38-
"lhip", "lknee", "lankle", "ltoes",
39-
"rhip", "rknee", "rankle", "rtoes",
40-
"belly", "spine", "chest", "neck", "head",
41-
"linshoulder", "lshoulder", "lelbow", "lwrist",
42-
"rinshoulder", "rshoulder", "relbow", "rwrist"
37+
"root",
38+
"lhip", "rhip", "belly",
39+
"lknee", "rknee", "spine",
40+
"lankle", "rankle", "chest",
41+
"ltoes", "rtoes", "neck",
42+
"linshoulder", "rinshoulder",
43+
"head", "lshoulder", "rshoulder",
44+
"lelbow", "relbow",
45+
"lwrist", "rwrist",
46+
"lhand", "rhand",
4347
]
4448

4549

@@ -151,18 +155,18 @@ def __init__(self, positions, joint_names=SMPL_JOINT_NAMES):
151155

152156
# humerus length
153157
self.hl = feat_utils.distance_between_points(
154-
[0.00121265, 0.37817603, 0.03681623], # "lshoulder",
155-
[0.19911349, 0.23680794, -0.01807022], # "lelbow"
158+
[1.99113488e-01, 2.36807942e-01, -1.80702247e-02], # "lshoulder",
159+
[4.54445392e-01, 2.21158922e-01, -4.10167128e-02], # "lelbow"
156160
)
157161
# shoulder width
158162
self.sw = feat_utils.distance_between_points(
159-
[0.00121265, 0.37817603, 0.03681623], # "lshoulder"
160-
[-0.45181984, 0.2225595, -0.04357424], # "rshoulder"
163+
[1.99113488e-01, 2.36807942e-01, -1.80702247e-02], # "lshoulder"
164+
[-1.91692337e-01, 2.36928746e-01, -1.23055102e-02,], # "rshoulder"
161165
)
162166
# hip width
163167
self.hw = feat_utils.distance_between_points(
164-
[0.05640767, -0.32306919, 0.01091971], # "lhip"
165-
[-0.10574003, -0.7149903, 0.01019822], # "rhip"
168+
[5.64076714e-02, -3.23069185e-01, 1.09197125e-02], # "lhip"
169+
[-6.24834076e-02, -3.31302464e-01, 1.50412619e-02], # "rhip"
166170
)
167171

168172
def next_frame(self):

0 commit comments

Comments
 (0)