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

Finetuning with existing model #33

Open
Auth0rM0rgan opened this issue Mar 17, 2020 · 1 comment
Open

Finetuning with existing model #33

Auth0rM0rgan opened this issue Mar 17, 2020 · 1 comment

Comments

@Auth0rM0rgan
Copy link

Auth0rM0rgan commented Mar 17, 2020

Hi @youngwanLEE ,

Would you please help me how can I do finetuning on the existed models to get the mask of only one class (person) of coco dataset? I need my model to detect only person, not 80 objects and I don't want to train the model from scratch. I have tried to follow maskrcnn-benchmark to do the finetunning but when I tried to trim the model to get rid of the last layers, I'm getting this error

detectron path: /home/XX/CenterMask/centermask-lite-M-v2-bs16-4x.pth Traceback (most recent call last): File "trimCenterMaskModel.py", line 43, in <module> _d = load_c2_format(cfg, DETECTRON_PATH) File "/home/media4us/PycharmProjects/CenterMask/maskrcnn_benchmark/utils/c2_model_loading.py", line 176, in load_c2_format return C2_FORMAT_LOADER[cfg.MODEL.BACKBONE.CONV_BODY](cfg, f) KeyError: 'MNV2-FPN-RETINANET'

My command line:

python trimCenterMaskModel.py --pretrained_path /home/media4us/PycharmProjects/CenterMask/centermask-lite-M-v2-bs16-4x.pth --save_path /home/media4us/PycharmProjects/CenterMask/centermask_Test --cfg configs/centermask/centermask_M_v2_FPN_lite_res600_ms_bs16_4x.yaml

@rohanshingade
Copy link

Hello @Auth0rM0rgan did you figure out how to do finetuning? I'm also trying to finetune CenterMask on coco person only dataset. Can you share any references or scripts that i should look into.
Thanks!

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

No branches or pull requests

2 participants