-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added coco evaluation code #34
Conversation
Hello! Thanks again @omkaar718 for providing this. |
|
||
if self.save_state: | ||
self._img = img | ||
self._yolo_res = results | ||
self._tracker_res = (bboxes, ids, scores) | ||
self._keypoints = frame_keypoints | ||
|
||
return frame_keypoints |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here just return the keypoints, and on line 272 save the scores_bbox
when self.save_state
.
|
||
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) | ||
# print('Img read, ', img.shape) | ||
frame_keypoints, conf_score = model.inference(img) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
access the model scores_bbox
directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some comments
Added code to evaluate the models on COCO val set. Instructions added in the readme under 'Evaluation on COCO dataset'.