mc-lan / ProxyCLIP

[ECCV2024] ProxyCLIP: Proxy Attention Improves CLIP for Open-Vocabulary Segmentation
56 stars 6 forks source link

About Fig.1 Precision-recall curves #1

Closed SuleBai closed 2 months ago

SuleBai commented 3 months ago

Thank you for the excellent work!

I found Figure 1 to be very insightful. However, I’m having some difficulty reproducing it. I’ve managed to extract the attention weights from the last layer of CLIP (in the shape num_heads * seq_len * seq_len).

Could you please share the code used to plot this figure (perhaps using CLIP's standard attention weights as an example)?

Thank you in advance!

mc-lan commented 3 months ago

You could refer to plot_pr_curves.

SuleBai commented 2 months ago

Thanks a lot.