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 to register the name into "TRAINER" registry'? I think I did everything correctly #55

Open
gordonhu608 opened this issue Jan 29, 2023 · 2 comments

Comments

@gordonhu608
Copy link

Here is the error I got.

KeyError: 'Object name "CLIP_Adapter" does not exist in "TRAINER" registry'
The new trainer file is here:
https://github.com/gaopengcuhk/CLIP-Adapter/blob/main/clip_adapter.py

So does the Registry automatically detect the trainer if I used @TRAINER_REGISTRY.register() ?

@KaiyangZhou
Copy link
Owner

you need to put import clip_adapter somewhere in the main file so the compiler will find this line and compile the adapter code

@sarthaxxxxx
Copy link

I broke my head for 3-4 hours on this. Thanks a lot!

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

3 participants