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

AttributeError: 'JaCLIPForBenchmark' object has no attribute 'eval' #93

Open
pkhk-1 opened this issue May 26, 2023 · 1 comment
Open

Comments

@pkhk-1
Copy link

pkhk-1 commented May 26, 2023

Thank you for your work. When I tried to use my own model for benchmark experiments with reference to open_clip.py, an error occurred during model.eval(). I also encountered the same error when running the ja_clip example provided in the readme.

python3 clip_benchmark/cli.py eval \ --model_type "ja_clip" \ --pretrained "rinna/japanese-cloob-vit-b-16" \ --language "jp" \ --task "zeroshot_classification" \ --dataset "imagenet1k" \
Error:
image
I used weights that are consistent with open_clip, but only replaced the .bin and config files. Can you advise me on how to properly load the weights?

@mehdidc
Copy link
Collaborator

mehdidc commented Jul 8, 2023

It seems like JaCLIPForBenchmark is not an torch.nn.Module, can you maybe share your code ?

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