nexusbert commited on
Commit
40ade6b
·
1 Parent(s): b08eeb5
Files changed (1) hide show
  1. smpl_generator.py +16 -0
smpl_generator.py CHANGED
@@ -157,6 +157,22 @@ class SMPLGenerator:
157
 
158
  if body_pose is None:
159
  body_pose = torch.zeros([batch_size, 69], device=self.device)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  elif isinstance(body_pose, np.ndarray):
161
  body_pose = torch.FloatTensor(body_pose).to(self.device)
162
 
 
157
 
158
  if body_pose is None:
159
  body_pose = torch.zeros([batch_size, 69], device=self.device)
160
+
161
+ left_shoulder_adduction = 0.5
162
+ right_shoulder_adduction = -0.5
163
+ left_shoulder_extension = 0.3
164
+ right_shoulder_extension = 0.3
165
+
166
+ left_elbow_flexion = -1.2
167
+ right_elbow_flexion = -1.2
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