yangyangyang127 / APE

[ICCV 2023] Code for "Not All Features Matter: Enhancing Few-shot CLIP with Adaptive Prior Refinement"
135 stars 12 forks source link

About the inter-class similarity #4

Open Kaihui-Cheng opened 1 year ago

Kaihui-Cheng commented 1 year ago

Hi, thank you for interesting work. But I have some question about the calculation of similarity in utils.py line 62

https://github.com/yangyangyang127/APE/blob/8fb5871bc9b4c1d22636c028ab288b79e7498a1b/utils.py#L62

why times the i-th class feature with the i-th class feature but not the j-th

yangyangyang127 commented 1 year ago

Thanks for your careful attention. This is a mistake. We have modified the code.