Skip to content
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

Merged
merged 5 commits into from
Apr 9, 2024

Conversation

liaogulou
Copy link
Collaborator

No description provided.

@liaogulou liaogulou requested a review from Cathy0908 January 30, 2024 09:40
batch_outputs = self.input_processor(batch_inputs)

# Distinguish between detections and keypoints
if self.cfg.model.type == 'TopDown':
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个s是什么

'image_file', 'image_id', 'center', 'scale', 'rotation',
'bbox_score', 'flip_pairs', 'bbox'
]),
]
Copy link
Collaborator

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到输出结果里就行了

@liaogulou liaogulou merged commit 1d1ac8a into master Apr 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants