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

multi-head design #219

Closed
syusukee opened this issue Oct 26, 2020 · 2 comments · Fixed by #382
Closed

multi-head design #219

syusukee opened this issue Oct 26, 2020 · 2 comments · Fixed by #382
Assignees

Comments

@syusukee
Copy link

hi,if I would like to use multi-head for the keypoint prediction, there is only one key word("keypoint_head") in the model config, how can I realize it? Could you give me some advice? Hope for your reply! @jin-s13

@syusukee syusukee changed the title mutli head design multi-head design Oct 26, 2020
@jin-s13
Copy link
Collaborator

jin-s13 commented Oct 26, 2020

Three steps to achieve this.

  1. In the config, simply modify this


    to make keypoint_head a list of dict, for example:
    keypoint_head = [dict(...), dict(...), ...]

  2. You may also modify this line, and use a for-loop to build multiple heads.

    self.keypoint_head = builder.build_head(keypoint_head)

  3. And modify the forward functions to support multiple heads.

https://github.com/open-mmlab/mmpose/blob/master/mmpose/models/detectors/top_down.py

================================================================================

By the way, what are these heads for? Maybe we can give an example of using multi_head models later.

@jin-s13 jin-s13 self-assigned this Oct 26, 2020
@syusukee
Copy link
Author

Thanks a lot!! I've read some paper that they combine classification or some other tasks with keypoints, so maybe you could add an example for the multi-head usage, it's a useful one!!

@jin-s13 jin-s13 mentioned this issue Dec 8, 2020
12 tasks
rollingman1 pushed a commit to rollingman1/mmpose that referenced this issue Nov 5, 2021
* init docs

* update

* update changelog

* Update changelog.md

Co-authored-by: lizz <innerlee@users.noreply.github.com>
HAOCHENYE pushed a commit to HAOCHENYE/mmpose that referenced this issue Jun 27, 2023
…lab#219)

* [Refactor] Change some methods to static methods

* only change build_dataloader to static method
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 a pull request may close this issue.

3 participants