[mmpose v1.0.0] How to get bbox and keypoints from test results #2221
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, my friend ! following the mmpose 1.X tutor manual,the testing inference is successful, and the record on log is shown as follow:
{"coco/AP": 0.5661935819079941, "coco/AP .5": 0.8071986260011533, "coco/AP .75": 0.6276648388391648, "coco/AP (M)": 0.5420095587014345, "coco/AP (L)": 0.6174008618580263, "coco/AR": 0.6130382775119617, "coco/AR .5": 0.8480861244019139, "coco/AR .75": 0.6698564593301436, "coco/AR (M)": 0.5789907312049433, "coco/AR (L)": 0.6639087018544936, "data_time": 0.009200310707092286, "time": 0.06942817211151123}
I wonder, is it possible to return the testing log like this (containing more detailed info on each img, so I can do evaluate by my own):
{'sample_idx': 0, 'img_shape': (224, 224), 'scale_factor': (1.607361963190184, 1.610062893081761), 'ori_shape': (159, 163), 'num_classes': 4, 'img_path': '/home/xxx/xxx.jpg', 'gt_label': {'label': tensor([1])}, 'pred_label': {'label': tensor([1]), 'score': tensor([0.0142, 0.9636, 0.0114, 0.0107])}}
This is what i get in mmclassification dev-1.X, through setting "cfg.out-item='pred'and 'cfg.out=xxx.pkl'"
I wonder whether i can achieve the similar results, and get the testing log/json/pkl which contains bbox and keypoints ?
Sincerely looking forward to your response, Thanks in advance~
Beta Was this translation helpful? Give feedback.
All reactions