WZMIAOMIAO / deep-learning-for-image-processing

deep learning for image processing including classification and object-detection etc.
GNU General Public License v3.0
23.36k stars 8.02k forks source link

数据读取中关键词错误 #728

Open Wslnjupt opened 1 year ago

Wslnjupt commented 1 year ago
with open(args.keypoints_path, "r") as f:
    person_kps_info = json.load(f)
kps_weights = np.array(person_kps_info["kps_weights"],
                       dtype=np.float32).reshape((args.num_joints,))

person_kps_info中没有kps_weights这个关键词

Wslnjupt commented 1 year ago

没人遇到这个问题吗?

Wslnjupt commented 1 year ago
    src_p2 = src_center + np.array([0, -src_h / 2])  # top middle
    src_p3 = src_center + np.array([src_w / 2, 0])   # right middle

注释有些问题,不是top middle,应该是down middle吧??

LukeyWang commented 11 months ago

你可以看一下作者的b站视频,kps_weights这个是在person_keypoints.json这个文件里面,这个文件是作者自带的,不是coco官方的,你把train.py参数里面--keypoints-path设置好应该就可以了,不会报这个错

LukeyWang commented 11 months ago
    src_p2 = src_center + np.array([0, -src_h / 2])  # top middle
    src_p3 = src_center + np.array([src_w / 2, 0])   # right middle

注释有些问题,不是top middle,应该是down middle吧?? 你可以看一下作者的b站视频,kps_weights这个是在person_keypoints.json这个文件里面,这个文件是作者自带的,不是coco官方的,你把train.py参数里面--keypoints-path设置好应该就可以了,不会报这个错

LukeyWang commented 11 months ago

@Wslnjupt