nexusbert commited on
Commit
22ff065
·
1 Parent(s): 013a9a1
Files changed (1) hide show
  1. smpl_generator.py +25 -6
smpl_generator.py CHANGED
@@ -158,21 +158,40 @@ class SMPLGenerator:
158
  if body_pose is None:
159
  body_pose = torch.zeros([batch_size, 69], device=self.device)
160
 
161
- left_shoulder_adduction = 0.6
162
- right_shoulder_adduction = -0.6
163
- left_shoulder_extension = 0.4
164
- right_shoulder_extension = 0.4
165
 
166
- left_elbow_flexion = -1.3
167
- right_elbow_flexion = -1.3
 
 
 
 
 
 
 
 
 
 
 
 
168
 
169
  body_pose[0, 16] = left_shoulder_adduction
170
  body_pose[0, 17] = left_shoulder_extension
 
 
171
  body_pose[0, 18] = right_shoulder_adduction
172
  body_pose[0, 19] = right_shoulder_extension
 
173
 
174
  body_pose[0, 20] = left_elbow_flexion
175
  body_pose[0, 21] = right_elbow_flexion
 
 
 
 
 
 
176
  elif isinstance(body_pose, np.ndarray):
177
  body_pose = torch.FloatTensor(body_pose).to(self.device)
178
 
 
158
  if body_pose is None:
159
  body_pose = torch.zeros([batch_size, 69], device=self.device)
160
 
161
+ left_shoulder_adduction = 0.25
162
+ right_shoulder_adduction = -0.25
 
 
163
 
164
+ left_shoulder_extension = -0.10
165
+ right_shoulder_extension = -0.10
166
+
167
+ left_shoulder_twist = 0.05
168
+ right_shoulder_twist = -0.05
169
+
170
+ left_elbow_flexion = 0.18
171
+ right_elbow_flexion = 0.18
172
+
173
+ left_foot_outward = 0.18
174
+ right_foot_outward = -0.18
175
+
176
+ left_ankle_dorsiflex = 0.05
177
+ right_ankle_dorsiflex = 0.05
178
 
179
  body_pose[0, 16] = left_shoulder_adduction
180
  body_pose[0, 17] = left_shoulder_extension
181
+ body_pose[0, 22] = left_shoulder_twist
182
+
183
  body_pose[0, 18] = right_shoulder_adduction
184
  body_pose[0, 19] = right_shoulder_extension
185
+ body_pose[0, 23] = right_shoulder_twist
186
 
187
  body_pose[0, 20] = left_elbow_flexion
188
  body_pose[0, 21] = right_elbow_flexion
189
+
190
+ body_pose[0, 26] = left_ankle_dorsiflex
191
+ body_pose[0, 27] = left_foot_outward
192
+
193
+ body_pose[0, 24] = right_ankle_dorsiflex
194
+ body_pose[0, 25] = right_foot_outward
195
  elif isinstance(body_pose, np.ndarray):
196
  body_pose = torch.FloatTensor(body_pose).to(self.device)
197