Open yosuaalvin opened 9 months ago
Hi, which file are you executing?
Memo: 4_pose_detection_wholebody.py
A_kpts_ori_xs = pose_df_values[hf_start:hf_end+1, ( 6 ):( 6+kpt_count2):2] / 640 - 1.0 A_kpts_ori_ys = pose_df_values[hf_start:hf_end+1, ( 6+1):( 6+kpt_count2):2] / 360 - 1.0 B_kpts_ori_xs = pose_df_values[hf_start:hf_end+1, (277 ):(277+kpt_count2):2] / 640 - 1.0 B_kpts_ori_ys = pose_df_values[hf_start:hf_end+1, (277+1):(277+kpt_count2):2] / 360 - 1.0
A_kpts_scl_xs = pose_df_values[hf_start:hf_end+1, ( 6 ):( 6+kpt_count*2):2]
A_kpts_scl_ys = pose_df_values[hf_start:hf_end+1, ( 6+1):( 6+kpt_count*2):2]
B_kpts_scl_xs = pose_df_values[hf_start:hf_end+1, (277 ):(277+kpt_count*2):2]
B_kpts_scl_ys = pose_df_values[hf_start:hf_end+1, (277+1):(277+kpt_count*2):2]
if not np.isnan(A_kpts_scl_xs).all():
A_kpts_scl_xs = A_kpts_scl_xs - (np.nanmax(A_kpts_scl_xs) + np.nanmin(A_kpts_scl_xs)) / 2
if not np.isnan(A_kpts_scl_ys).all():
A_kpts_scl_ys = A_kpts_scl_ys - (np.nanmax(A_kpts_scl_ys) + np.nanmin(A_kpts_scl_ys)) / 2
if not np.isnan(B_kpts_scl_xs).all():
B_kpts_scl_xs = B_kpts_scl_xs - (np.nanmax(B_kpts_scl_xs) + np.nanmin(B_kpts_scl_xs)) / 2
if not np.isnan(B_kpts_scl_ys).all():
B_kpts_scl_ys = B_kpts_scl_ys - (np.nanmax(B_kpts_scl_ys) + np.nanmin(B_kpts_scl_ys)) / 2
if not np.isnan(A_kpts_scl_xs).all() or not np.isnan(A_kpts_scl_ys).all():
A_kpts_scl_xs /= np.nanmax([np.nanmax(np.abs(A_kpts_scl_xs)), np.nanmax(np.abs(A_kpts_scl_ys))])
A_kpts_scl_ys /= np.nanmax([np.nanmax(np.abs(A_kpts_scl_xs)), np.nanmax(np.abs(A_kpts_scl_ys))])
if not np.isnan(B_kpts_scl_xs).all() or not np.isnan(B_kpts_scl_ys).all():
B_kpts_scl_xs /= np.nanmax([np.nanmax(np.abs(B_kpts_scl_xs)), np.nanmax(np.abs(B_kpts_scl_ys))])
B_kpts_scl_ys /= np.nanmax([np.nanmax(np.abs(B_kpts_scl_xs)), np.nanmax(np.abs(B_kpts_scl_ys))])
could i know what is the logic of that function? this is in dataloader.py what is the form of Frame Player A confidence Player A X left Player A X right Player A Y top Player A Y bottom Player A nose X Player A nose Y Player A left_eye X Player A left_eye Y Player A right_eye X Player A right_eye Y Player A left_ear X Player A left_ear Y Player A right_ear X Player A right_ear Y Player A left_shoulder X Player A left_shoulder Y Player A right_shoulder X Player A right_shoulder Y Player A left_elbow X Player A left_elbow Y Player A right_elbow X Player A right_elbow Y Player A left_wrist X Player A left_wrist Y Player A right_wrist X Player A right_wrist Y Player A left_hip X Player A left_hip Y Player A right_hip X Player A right_hip Y Player A left_knee X Player A left_knee Y Player A right_knee X Player A right_knee Y Player A left_ankle X Player A left_ankle Y Player A right_ankle X Player A right_ankle Y Player A left_big_toe X Player A left_big_toe Y Player A left_small_toe X Player A left_small_toe Y Player A left_heel X Player A left_heel Y Player A right_big_toe X Player A right_big_toe Y Player A right_small_toe X Player A right_small_toe Y Player A right_heel X Player A right_heel Y Player A face-0 X Player A face-0 Y Player A face-1 X Player A face-1 Y Player A face-2 X Player A face-2 Y Player A face-3 X Player A face-3 Y Player A face-4 X Player A face-4 Y Player A face-5 X Player A face-5 Y Player A face-6 X Player A face-6 Y Player A face-7 X Player A face-7 Y Player A face-8 X Player A face-8 Y Player A face-9 X Player A face-9 Y Player A face-10 X Player A face-10 Y Player A face-11 X Player A face-11 Y Player A face-12 X Player A face-12 Y Player A face-13 X Player A face-13 Y Player A face-14 X Player A face-14 Y Player A face-15 X Player A face-15 Y Player A face-16 X Player A face-16 Y Player A face-17 X Player A face-17 Y Player A face-18 X Player A face-18 Y Player A face-19 X Player A face-19 Y Player A face-20 X Player A face-20 Y Player A face-21 X Player A face-21 Y Player A face-22 X Player A face-22 Y Player A face-23 X Player A face-23 Y Player A face-24 X Player A face-24 Y Player A face-25 X Player A face-25 Y Player A face-26 X Player A face-26 Y Player A face-27 X Player A face-27 Y Player A face-28 X Player A face-28 Y Player A face-29 X Player A face-29 Y Player A face-30 X Player A face-30 Y Player A face-31 X Player A face-31 Y Player A face-32 X Player A face-32 Y Player A face-33 X Player A face-33 Y Player A face-34 X Player A face-34 Y Player A face-35 X Player A face-35 Y Player A face-36 X Player A face-36 Y Player A face-37 X Player A face-37 Y Player A face-38 X Player A face-38 Y Player A face-39 X Player A face-39 Y Player A face-40 X Player A face-40 Y Player A face-41 X Player A face-41 Y Player A face-42 X Player A face-42 Y Player A face-43 X Player A face-43 Y Player A face-44 X Player A face-44 Y Player A face-45 X Player A face-45 Y Player A face-46 X Player A face-46 Y Player A face-47 X Player A face-47 Y Player A face-48 X Player A face-48 Y Player A face-49 X Player A face-49 Y Player A face-50 X Player A face-50 Y Player A face-51 X Player A face-51 Y Player A face-52 X Player A face-52 Y Player A face-53 X Player A face-53 Y Player A face-54 X Player A face-54 Y Player A face-55 X Player A face-55 Y Player A face-56 X Player A face-56 Y Player A face-57 X Player A face-57 Y Player A face-58 X Player A face-58 Y Player A face-59 X Player A face-59 Y Player A face-60 X Player A face-60 Y Player A face-61 X Player A face-61 Y Player A face-62 X Player A face-62 Y Player A face-63 X Player A face-63 Y Player A face-64 X Player A face-64 Y Player A face-65 X Player A face-65 Y Player A face-66 X Player A face-66 Y Player A face-67 X Player A face-67 Y Player A left_hand_root X Player A left_hand_root Y Player A left_thumb1 X Player A left_thumb1 Y Player A left_thumb2 X Player A left_thumb2 Y Player A left_thumb3 X Player A left_thumb3 Y Player A left_thumb4 X Player A left_thumb4 Y Player A left_forefinger1 X Player A left_forefinger1 Y Player A left_forefinger2 X Player A left_forefinger2 Y Player A left_forefinger3 X Player A left_forefinger3 Y Player A left_forefinger4 X Player A left_forefinger4 Y Player A left_middle_finger1 X Player A left_middle_finger1 Y Player A left_middle_finger2 X Player A left_middle_finger2 Y Player A left_middle_finger3 X Player A left_middle_finger3 Y Player A left_middle_finger4 X Player A left_middle_finger4 Y Player A left_ring_finger1 X Player A left_ring_finger1 Y Player A left_ring_finger2 X Player A left_ring_finger2 Y Player A left_ring_finger3 X Player A left_ring_finger3 Y Player A left_ring_finger4 X Player A left_ring_finger4 Y Player A left_pinky_finger1 X Player A left_pinky_finger1 Y Player A left_pinky_finger2 X Player A left_pinky_finger2 Y Player A left_pinky_finger3 X Player A left_pinky_finger3 Y Player A left_pinky_finger4 X Player A left_pinky_finger4 Y Player A right_hand_root X Player A right_hand_root Y Player A right_thumb1 X Player A right_thumb1 Y Player A right_thumb2 X Player A right_thumb2 Y Player A right_thumb3 X Player A right_thumb3 Y Player A right_thumb4 X Player A right_thumb4 Y Player A right_forefinger1 X Player A right_forefinger1 Y Player A right_forefinger2 X Player A right_forefinger2 Y Player A right_forefinger3 X Player A right_forefinger3 Y Player A right_forefinger4 X Player A right_forefinger4 Y Player A right_middle_finger1 X Player A right_middle_finger1 Y Player A right_middle_finger2 X Player A right_middle_finger2 Y Player A right_middle_finger3 X Player A right_middle_finger3 Y Player A right_middle_finger4 X Player A right_middle_finger4 Y Player A right_ring_finger1 X Player A right_ring_finger1 Y Player A right_ring_finger2 X Player A right_ring_finger2 Y Player A right_ring_finger3 X Player A right_ring_finger3 Y Player A right_ring_finger4 X Player A right_ring_finger4 Y Player A right_pinky_finger1 X Player A right_pinky_finger1 Y Player A right_pinky_finger2 X Player A right_pinky_finger2 Y Player A right_pinky_finger3 X Player A right_pinky_finger3 Y Player A right_pinky_finger4 X Player A right_pinky_finger4 Y Player B confidence Player B X left Player B X right Player B Y top Player B Y bottom Player B nose X Player B nose Y Player B left_eye X Player B left_eye Y Player B right_eye X Player B right_eye Y Player B left_ear X Player B left_ear Y Player B right_ear X Player B right_ear Y Player B left_shoulder X Player B left_shoulder Y Player B right_shoulder X Player B right_shoulder Y Player B left_elbow X Player B left_elbow Y Player B right_elbow X Player B right_elbow Y Player B left_wrist X Player B left_wrist Y Player B right_wrist X Player B right_wrist Y Player B left_hip X Player B left_hip Y Player B right_hip X Player B right_hip Y Player B left_knee X Player B left_knee Y Player B right_knee X Player B right_knee Y Player B left_ankle X Player B left_ankle Y Player B right_ankle X Player B right_ankle Y Player B left_big_toe X Player B left_big_toe Y Player B left_small_toe X Player B left_small_toe Y Player B left_heel X Player B left_heel Y Player B right_big_toe X Player B right_big_toe Y Player B right_small_toe X Player B right_small_toe Y Player B right_heel X Player B right_heel Y Player B face-0 X Player B face-0 Y Player B face-1 X Player B face-1 Y Player B face-2 X Player B face-2 Y Player B face-3 X Player B face-3 Y Player B face-4 X Player B face-4 Y Player B face-5 X Player B face-5 Y Player B face-6 X Player B face-6 Y Player B face-7 X Player B face-7 Y Player B face-8 X Player B face-8 Y Player B face-9 X Player B face-9 Y Player B face-10 X Player B face-10 Y Player B face-11 X Player B face-11 Y Player B face-12 X Player B face-12 Y Player B face-13 X Player B face-13 Y Player B face-14 X Player B face-14 Y Player B face-15 X Player B face-15 Y Player B face-16 X Player B face-16 Y Player B face-17 X Player B face-17 Y Player B face-18 X Player B face-18 Y Player B face-19 X Player B face-19 Y Player B face-20 X Player B face-20 Y Player B face-21 X Player B face-21 Y Player B face-22 X Player B face-22 Y Player B face-23 X Player B face-23 Y Player B face-24 X Player B face-24 Y Player B face-25 X Player B face-25 Y Player B face-26 X Player B face-26 Y Player B face-27 X Player B face-27 Y Player B face-28 X Player B face-28 Y Player B face-29 X Player B face-29 Y Player B face-30 X Player B face-30 Y Player B face-31 X Player B face-31 Y Player B face-32 X Player B face-32 Y Player B face-33 X Player B face-33 Y Player B face-34 X Player B face-34 Y Player B face-35 X Player B face-35 Y Player B face-36 X Player B face-36 Y Player B face-37 X Player B face-37 Y Player B face-38 X Player B face-38 Y Player B face-39 X Player B face-39 Y Player B face-40 X Player B face-40 Y Player B face-41 X Player B face-41 Y Player B face-42 X Player B face-42 Y Player B face-43 X Player B face-43 Y Player B face-44 X Player B face-44 Y Player B face-45 X Player B face-45 Y Player B face-46 X Player B face-46 Y Player B face-47 X Player B face-47 Y Player B face-48 X Player B face-48 Y Player B face-49 X Player B face-49 Y Player B face-50 X Player B face-50 Y Player B face-51 X Player B face-51 Y Player B face-52 X Player B face-52 Y Player B face-53 X Player B face-53 Y Player B face-54 X Player B face-54 Y Player B face-55 X Player B face-55 Y Player B face-56 X Player B face-56 Y Player B face-57 X Player B face-57 Y Player B face-58 X Player B face-58 Y Player B face-59 X Player B face-59 Y Player B face-60 X Player B face-60 Y Player B face-61 X Player B face-61 Y Player B face-62 X Player B face-62 Y Player B face-63 X Player B face-63 Y Player B face-64 X Player B face-64 Y Player B face-65 X Player B face-65 Y Player B face-66 X Player B face-66 Y Player B face-67 X Player B face-67 Y Player B left_hand_root X Player B left_hand_root Y Player B left_thumb1 X Player B left_thumb1 Y Player B left_thumb2 X Player B left_thumb2 Y Player B left_thumb3 X Player B left_thumb3 Y Player B left_thumb4 X Player B left_thumb4 Y Player B left_forefinger1 X Player B left_forefinger1 Y Player B left_forefinger2 X Player B left_forefinger2 Y Player B left_forefinger3 X Player B left_forefinger3 Y Player B left_forefinger4 X Player B left_forefinger4 Y Player B left_middle_finger1 X Player B left_middle_finger1 Y Player B left_middle_finger2 X Player B left_middle_finger2 Y Player B left_middle_finger3 X Player B left_middle_finger3 Y Player B left_middle_finger4 X Player B left_middle_finger4 Y Player B left_ring_finger1 X Player B left_ring_finger1 Y Player B left_ring_finger2 X Player B left_ring_finger2 Y Player B left_ring_finger3 X Player B left_ring_finger3 Y Player B left_ring_finger4 X Player B left_ring_finger4 Y Player B left_pinky_finger1 X Player B left_pinky_finger1 Y Player B left_pinky_finger2 X Player B left_pinky_finger2 Y Player B left_pinky_finger3 X Player B left_pinky_finger3 Y Player B left_pinky_finger4 X Player B left_pinky_finger4 Y Player B right_hand_root X Player B right_hand_root Y Player B right_thumb1 X Player B right_thumb1 Y Player B right_thumb2 X Player B right_thumb2 Y Player B right_thumb3 X Player B right_thumb3 Y Player B right_thumb4 X Player B right_thumb4 Y Player B right_forefinger1 X Player B right_forefinger1 Y Player B right_forefinger2 X Player B right_forefinger2 Y Player B right_forefinger3 X Player B right_forefinger3 Y Player B right_forefinger4 X Player B right_forefinger4 Y Player B right_middle_finger1 X Player B right_middle_finger1 Y Player B right_middle_finger2 X Player B right_middle_finger2 Y Player B right_middle_finger3 X Player B right_middle_finger3 Y Player B right_middle_finger4 X Player B right_middle_finger4 Y Player B right_ring_finger1 X Player B right_ring_finger1 Y Player B right_ring_finger2 X Player B right_ring_finger2 Y Player B right_ring_finger3 X Player B right_ring_finger3 Y Player B right_ring_finger4 X Player B right_ring_finger4 Y Player B right_pinky_finger1 X Player B right_pinky_finger1 Y Player B right_pinky_finger2 X Player B right_pinky_finger2 Y Player B right_pinky_finger3 X Player B right_pinky_finger3 Y Player B right_pinky_finger4 X Player B right_pinky_finger4 Y is processed?
If I remember them right, these values are from the pose estimation neural network (I used HRNet).
how to resolve ModuleNotFoundError: No module named 'data.background', there is a data.py?