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

Integrating DINOv2 Backbone into Mask2Former for Semantic Segmentation #343

Open
hrishikeshps94 opened this issue Aug 14, 2023 · 3 comments

Comments

@hrishikeshps94
Copy link

hrishikeshps94 commented Aug 14, 2023

@NielsRogge

Has anyone come across notebooks that can assist in integrating DINOv2 as the backbone for Mask2Former for semantic segmentation? I attempted this integration, but when configuring Mask2Former with the DINOv2 backbone, I encountered the following error:

ValueError: Unrecognized configuration class <class 'transformers.models.dinov2.configuration_dinov2.Dinov2Config'> for this kind of AutoModel: AutoBackbone. Model type should be one of BitConfig, ConvNextConfig, ConvNextV2Config, DinatConfig, FocalNetConfig, MaskFormerSwinConfig, NatConfig, ResNetConfig, SwinConfig, TimmBackboneConfig.

@hrishikeshps94
Copy link
Author

@NielsRogge Should I wait till the PR get merged

@NielsRogge
Copy link
Owner

Yes :)

@hrishikeshps94
Copy link
Author

Ok, Thank you for the prompt reply and confirmation.

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