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

KeyError: 'ViTAdapter is not in the models registry' #154

Open
CatOneTwo opened this issue Nov 17, 2023 · 3 comments
Open

KeyError: 'ViTAdapter is not in the models registry' #154

CatOneTwo opened this issue Nov 17, 2023 · 3 comments

Comments

@CatOneTwo
Copy link

When I want to run the train.py in detection folders, the error occurs
KeyError: 'ViTAdapter is not in the models registry'

I have installed the environment according to the ReadMe file, so how to fix this bug, thank you!

@czczup
Copy link
Owner

czczup commented Dec 12, 2023

I'm really sorry for the late reply.

This is likely because the current path where the code is running has not been added to the PYTHONPATH. You can try the following cmd:

export PYTHONPATH="${PYTHONPATH}:$(pwd)"

@yushanz
Copy link

yushanz commented May 27, 2024

When I want to run the train.py in detection folders, the error occurs KeyError: 'ViTAdapter is not in the models registry'

I have installed the environment according to the ReadMe file, so how to fix this bug, thank you!

Hey I ran into the same problem :(
It works if I run the official test script. But the same KeyError occurs if I want to build model in my own script.
Can you share how you solved the problem?
Thanks! :)

@CardenB
Copy link

CardenB commented Jul 29, 2024

@yushanz make sure you import mmdet_custom

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

4 participants