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

How can we change the num_queries? #522

Open
Wonderland23 opened this issue Aug 21, 2024 · 1 comment
Open

How can we change the num_queries? #522

Wonderland23 opened this issue Aug 21, 2024 · 1 comment

Comments

@Wonderland23
Copy link

I tried to change it at GroundingDINO_SwinT_OGC.py but got

RuntimeError: Error(s) in loading state_dict for GroundingDINO:
size mismatch for transformer.tgt_embed.weight: copying a param with shape torch.Size([900, 256]) from checkpoint, the shape in current model is torch.Size([30, 256]).

@rentainhe
Copy link
Collaborator

num_queries is pre-defined in grounding dino model which can not be changed, if you change the config, it may not be able to load pretrained ckpt

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