Haiyang-W / GiT

[ECCV2024 Oral🔥] Official Implementation of "GiT: Towards Generalist Vision Transformer through Universal Language Interface"
https://arxiv.org/abs/2403.09394
Apache License 2.0
293 stars 12 forks source link

KeyError: 'Duplicate key is not allowed among bases' #7

Closed NareshGuru77 closed 5 months ago

NareshGuru77 commented 5 months ago

When using the large and huge few-shot configurations for loveda dataset, since the config uses both the loveda base config and the git_large config, there are overlapping keys. Issue can be resolved by creating a copy of loveda_base and replacing git_base with git_large and load_from base to large.

Is there any other way to fix this? Or am I missing something here?

Thank you!

nnnth commented 5 months ago

Your edits are correct. Sorry for the confusion. We'll fix this bug later.

nnnth commented 5 months ago

We have updated the config for few-shot. The custom_keys in the optimizer also need to be adjusted according to the model size. Hope everything goes well for you.

NareshGuru77 commented 5 months ago

Hi!, Thank you for the fixes! In the corrected configs, the custom_keys are also already adjusted? I can use them directly?

Thank you!

nnnth commented 5 months ago

Yes, you can use them directly. Feel free to ask if you have any other questions.