-
Notifications
You must be signed in to change notification settings - Fork 34
Description
First off, thanks for the tutorial! You're a real lifesaver. I'm trying to get evaluate
to work at the moment. I have num_keypoints=4
. The model trains smoothly when I just comment out evaluate
during training, but I need to evaluate the performance now so I'm trying to get that to work. I did what you instructed in your tutorial:
Update. It’s possible not to edit
pycocotools/cocoeval.py
file in pycocotools library to changekpt_oks_sigmas
, but to editcoco_eval.py
file, as Diogo Santiago suggested:
# self.coco_eval[iou_type] = COCOeval(coco_gt, iouType=iou_type)
coco_eval = COCOeval(coco_gt, iouType=iou_type)
coco_eval.params.kpt_oks_sigmas = np.array([.5, .5]) / 10.0
self.coco_eval[iou_type] = coco_eval
Since I have num_keypoints=4
, I instead wrote np.array([.5, .5, .5, .5]) / 10.0
for kpt_oks_sigmas
.
But I'm still getting the same error: ValueError: operands could not be broadcast together with shapes (4,) (17,)
Hoping you can help me with this! 🤞