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

The model meter_clip16_288_roberta_flickr.ckpt is inconsistent with the network weight parameter dimension #25

Closed
attutude opened this issue Jul 1, 2022 · 4 comments

Comments

@attutude
Copy link

attutude commented Jul 1, 2022

Hi,
Thank you for your excellent work, may I use this model "METER-CLIP16-RoBERTa fine-tuned on Flickr30k IR/TR (resolution: 384^2)" as meter_clip16_288_roberta_flickr.ckpt, why does the code report this error showing inconsistent dimensions, thank you answer my question.
Y88) J7_592_AJQR}4LBP4W

@zdou0830
Copy link
Owner

zdou0830 commented Jul 1, 2022

it seems that you are using BERT and CLIP32 as the text and image encoder while the checkpoint is based on RoBERTa and CLIP16. As in README, an example command is:

python run.py with data_root=/data2/dsets/dataset num_gpus=8 num_nodes=1 task_finetune_irtr_f30k_clip_bert get_recall_metric=True per_gpu_batchsize=32 load_path=meter_f30k.ckpt clip16 text_roberta image_size=384 test_only=True

@attutude
Copy link
Author

it seems that you are using BERT and CLIP32 as the text and image encoder while the checkpoint is based on RoBERTa and CLIP16. As in README, an example command is:

python run.py with data_root=/data2/dsets/dataset num_gpus=8 num_nodes=1 task_finetune_irtr_f30k_clip_bert get_recall_metric=True per_gpu_batchsize=32 load_path=meter_f30k.ckpt clip16 text_roberta image_size=384 test_only=True

Thank you for your answer, can you please publish the weights of the merged attention model, thank you very much.

@zdou0830
Copy link
Owner

Hi, see #21

@attutude
Copy link
Author

Hi, see #21

OK, thanks

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