Open gordonhu608 opened 1 year ago
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() ?
you need to put import clip_adapter somewhere in the main file so the compiler will find this line and compile the adapter code
import clip_adapter
I broke my head for 3-4 hours on this. Thanks a lot!
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() ?