Yzy00518 commited on
Commit
101085e
·
verified ·
1 Parent(s): 41752cd

Update src/app/process_data.py

Browse files
Files changed (1) hide show
  1. src/app/process_data.py +2 -1
src/app/process_data.py CHANGED
@@ -31,6 +31,7 @@ def get_a_sample(mo_data, motion_len=6, SEQLEN=16, smplx_pth=None):
31
  global_orient = mo_data['global_orient'] # L,3
32
  body_pose = mo_data['body_pose'] # L,63 -> L,21,3
33
  length = transl.shape[0]
 
34
 
35
  if (length - (SEQLENTIMES2-2)*motion_len) <= 0:
36
  return None
@@ -72,5 +73,5 @@ def get_a_sample(mo_data, motion_len=6, SEQLEN=16, smplx_pth=None):
72
  global_orient=torch.tensor(global_orient_all, dtype=torch.float32),
73
  transl=torch.tensor(transl_all, dtype=torch.float32),
74
  ).joints[:, SELECTED_JOINT28]
75
-
76
  return joints.reshape(motion_len, SEQLEN, 28, 3) # a Tensor of size (6, 16, 28, 3)
 
31
  global_orient = mo_data['global_orient'] # L,3
32
  body_pose = mo_data['body_pose'] # L,63 -> L,21,3
33
  length = transl.shape[0]
34
+ print("Get a sample")
35
 
36
  if (length - (SEQLENTIMES2-2)*motion_len) <= 0:
37
  return None
 
73
  global_orient=torch.tensor(global_orient_all, dtype=torch.float32),
74
  transl=torch.tensor(transl_all, dtype=torch.float32),
75
  ).joints[:, SELECTED_JOINT28]
76
+ print("Get a sample returns successfully!")
77
  return joints.reshape(motion_len, SEQLEN, 28, 3) # a Tensor of size (6, 16, 28, 3)