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

Taiyi-CLIP-Roberta-102M-Chinese Finetuning报错 #452

Closed
1306825592 opened this issue Jan 23, 2024 · 0 comments
Closed

Taiyi-CLIP-Roberta-102M-Chinese Finetuning报错 #452

1306825592 opened this issue Jan 23, 2024 · 0 comments

Comments

@1306825592
Copy link

再Fengshenbang-LM/fengshen/examples/clip_finetune/clip_finetune_flickr.py中
计算相似性这里
打印出来的shape显示
image
image
logits_per_image = (logit_scale * image_features @ text_features.t()).detach().cpu()
logit_scale 为 torch.Size([5000, 512]) image_features torch.Size([5000, 2]) label 为5000

包括这里也有shape 不一致的情况
image

请问是我复现方式不对吗

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

1 participant