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

Pretrained models for Keypoint + Segmentation tasks #3099

Open
saidaltindis opened this issue May 28, 2021 · 5 comments
Open

Pretrained models for Keypoint + Segmentation tasks #3099

saidaltindis opened this issue May 28, 2021 · 5 comments
Labels
enhancement Improvements or good new features

Comments

@saidaltindis
Copy link

Pretrained models for Keypoint + Segmentation tasks

Although there are multiple pretrained models provided for segmentation and keypoint tasks separately, there is no pretrained model that trained for multi-task.

Providing such models would be an important baseline for the people that re-trained their model since it is possible to train such models using detectron2 (#17).

@saidaltindis saidaltindis added the enhancement Improvements or good new features label May 28, 2021
@VGrondin
Copy link

The keypoints model are multi-task, you just need to turn it on e.g.:

cfg = get_cfg()
cfg.merge_from_file(model_zoo.get_config_file("COCO-Keypoints/keypoint_rcnn_X_101_32x8d_FPN_3x.yaml"))
cfg.MODEL.MASK_ON = True
cfg.MODEL.KEYPOINT_ON = True 

@saidaltindis
Copy link
Author

Are you sure? They did not report the mask score for keypoint models and in metrics, mask loss is not present.

https://dl.fbaipublicfiles.com/detectron2/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x/137261548/metrics.json

@chenzhutian
Copy link

After setting cfg.MODEL.MASK_ON = True, the output of the mask is just noise. I guess the pre-trained models dont support keypoint detection and segmentation in the same time.

@soulslicer
Copy link

Did you every figure this out?

@DIANSLEE
Copy link

DIANSLEE commented Nov 7, 2024

I tried
cfg.MODEL.MASK_ON = True
cfg.MODEL.KEYPOINT_ON = True
and I combine the .pkl weight file both mask and keypoints to get pretrained weights.
however the segment AP is down 20 points....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements or good new features
Projects
None yet
Development

No branches or pull requests

5 participants