We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
再Fengshenbang-LM/fengshen/examples/clip_finetune/clip_finetune_flickr.py中 计算相似性这里 打印出来的shape显示 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 不一致的情况
请问是我复现方式不对吗
The text was updated successfully, but these errors were encountered:
No branches or pull requests
再Fengshenbang-LM/fengshen/examples/clip_finetune/clip_finetune_flickr.py中
![image](https://private-user-images.githubusercontent.com/47473445/298840819-4b0a5b1c-8f7c-41ce-8845-9fe0a44badc2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxOTUxODIsIm5iZiI6MTcyNDE5NDg4MiwicGF0aCI6Ii80NzQ3MzQ0NS8yOTg4NDA4MTktNGIwYTViMWMtOGY3Yy00MWNlLTg4NDUtOWZlMGE0NGJhZGMyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDIzMDEyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1YjhjMjU1MGUxMDEzODhmM2Q5NTEwYWM3MzI4NzU0ODM4NjkzMzIyOWJkOTIxNjQ1NGQ3ODhmZDkyZTkyNTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5LsP_chmXVnpnf4HbLUp2kIE_kCc7rsVWf67i5SAEIs)
![image](https://private-user-images.githubusercontent.com/47473445/298840819-4b0a5b1c-8f7c-41ce-8845-9fe0a44badc2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxOTUxODIsIm5iZiI6MTcyNDE5NDg4MiwicGF0aCI6Ii80NzQ3MzQ0NS8yOTg4NDA4MTktNGIwYTViMWMtOGY3Yy00MWNlLTg4NDUtOWZlMGE0NGJhZGMyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDIzMDEyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1YjhjMjU1MGUxMDEzODhmM2Q5NTEwYWM3MzI4NzU0ODM4NjkzMzIyOWJkOTIxNjQ1NGQ3ODhmZDkyZTkyNTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5LsP_chmXVnpnf4HbLUp2kIE_kCc7rsVWf67i5SAEIs)
计算相似性这里
打印出来的shape显示
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](https://private-user-images.githubusercontent.com/47473445/298841624-fc2b630a-b929-4399-9b84-32a24f14c26f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxOTUxODIsIm5iZiI6MTcyNDE5NDg4MiwicGF0aCI6Ii80NzQ3MzQ0NS8yOTg4NDE2MjQtZmMyYjYzMGEtYjkyOS00Mzk5LTliODQtMzJhMjRmMTRjMjZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDIzMDEyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU2OGE3N2I2NGU3YjRmZTg3ODE4YTY3YWMzOWQ3MWQ2NmUyNTAyNzUyYmVhMTEyYjZlYTg2ZTllNzZmNDU0MmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kbD-S4RYpH_gutehsj4OAFklHYFYwuUyc_Xk3LJLZ_c)
请问是我复现方式不对吗
The text was updated successfully, but these errors were encountered: