Spaces:
Sleeping
Sleeping
File size: 2,775 Bytes
d7e58f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# the keypoints defined in the SMPL paper
SMPL_KEYPOINTS = [
'pelvis',
'left_hip',
'right_hip',
'spine_1',
'left_knee',
'right_knee',
'spine_2',
'left_ankle',
'right_ankle',
'spine_3',
'left_foot',
'right_foot',
'neck',
'left_collar',
'right_collar',
'head',
'left_shoulder',
'right_shoulder',
'left_elbow',
'right_elbow',
'left_wrist',
'right_wrist',
# 'left_hand',
# 'right_hand',
'left_middle',
'right_middle'
]
# the full keypoints produced by the default SMPL J_regressor
SMPL_45_KEYPOINTS = SMPL_KEYPOINTS + [
'nose',
'right_eye',
'left_eye',
'right_ear',
'left_ear',
'left_bigtoe',
'left_smalltoe',
'left_heel',
'right_bigtoe',
'right_smalltoe',
'right_heel',
'left_thumb',
'left_index',
'left_middle',
'left_ring',
'left_pinky',
'right_thumb',
'right_index',
'right_middle',
'right_ring',
'right_pinky',
]
# the full keypoints produced by the default SMPL J_regressor and
# extra_J_regressor (provided by SPIN)
SMPL_54_KEYPOINTS = SMPL_45_KEYPOINTS + [
'right_hip_extra', # LSP
'left_hip_extra', # LSP
'neck_extra', # LSP
'headtop', # LSP
'pelvis_extra', # MPII
'thorax_extra', # MPII
'spine_extra', # H36M
'jaw_extra', # H36M
'head_extra', # H36M
]
# SMPL keypoint convention used by SPIN, EFT and so on
SMPL_49_KEYPOINTS = [
# OpenPose
'nose_openpose',
'neck_openpose', # 'upper_neck'
'right_shoulder_openpose',
'right_elbow_openpose',
'right_wrist_openpose',
'left_shoulder_openpose',
'left_elbow_openpose',
'left_wrist_openpose',
'pelvis_openpose',
'right_hip_openpose',
'right_knee_openpose',
'right_ankle_openpose',
'left_hip_openpose',
'left_knee_openpose',
'left_ankle_openpose',
'right_eye_openpose',
'left_eye_openpose',
'right_ear_openpose',
'left_ear_openpose',
'left_bigtoe_openpose',
'left_smalltoe_openpose',
'left_heel_openpose',
'right_bigtoe_openpose',
'right_smalltoe_openpose',
'right_heel_openpose',
# 24 Keypoints
'right_ankle',
'right_knee',
'right_hip_extra', # LSP
'left_hip_extra', # LSP
'left_knee',
'left_ankle',
'right_wrist',
'right_elbow',
'right_shoulder',
'left_shoulder',
'left_elbow',
'left_wrist',
'neck_extra', # LSP
'headtop', # LSP mpii peen_action mpi_inf_3dhp
'pelvis_extra', # MPII
'thorax_extra', # MPII
'spine_extra', # H36M
'jaw_extra', # H36M
'head_extra', # H36M
'nose',
'left_eye',
'right_eye',
'left_ear',
'right_ear'
]
SMPL_24_KEYPOINTS = SMPL_49_KEYPOINTS[-24:]
|