-
Notifications
You must be signed in to change notification settings - Fork 207
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
fix pose prediction of result error #337
fix pose prediction of result error #337
Conversation
easycv/predictors/base.py
Outdated
batch_outputs = self.input_processor(batch_inputs) | ||
|
||
# Distinguish between detections and keypoints | ||
if self.cfg.model.type == 'TopDown': |
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.
不要动基类,在子类里改
box = person_result['bbox'] # x,y,x,y | ||
box = [box[0], box[1], box[2] - box[0], box[3] - box[1]] # x,y,w,h | ||
center, scale = _box2cs(self.cfg.data_cfg['image_size'], box) | ||
box = person_result['bbox'] # x,y,x,y,s |
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.
这个s是什么
easycv/predictors/pose_predictor.py
Outdated
'image_file', 'image_id', 'center', 'scale', 'rotation', | ||
'bbox_score', 'flip_pairs', 'bbox' | ||
]), | ||
] |
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.
这里也不需要改了吧,只需要在 process_single 函数 self.processor(output)处理之后,再把bbox append到输出结果里就行了
No description provided.