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

Request for Guidance: Adding a New Head in Detectron 2 for Weather Prediction and Object Occlusion Detection #103

Open
matg41 opened this issue Feb 5, 2024 · 0 comments

Comments

@matg41
Copy link

matg41 commented Feb 5, 2024

Hello everyone,

I am attempting to add a new head to the base model to predict weather and determine if an object is occluded or not. The dataset I am using is coco-like, and I have already registered the new field in the platform. As a beginner in using detectron 2, I understand that I need to modify the forward function in the model and create a custom loss function. However, I am unsure of the proper way to do this in detectron 2.

I have come across issue #3321 (in detectron 2 repo), where a similar problem is being addressed. It seems that to create a new head, I need to define a regular nn.Module or nn.Sequential class, such as mask_head and deeplab. Subsequently, in roi_heads.py, I should implement the StandardROIHeads or the superclass ROIHeads and add the new head. Additionally, a yaml file needs to be created in the MaskDINO/configs folder to include the additional heads.

I would appreciate any guidance on how to properly add another mask-type head and make the necessary modifications in detectron 2.

Thank you for your assistance.

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

1 participant