Parskatt / DeDoDe

[3DV 2024 Oral] DeDoDe 🎶 Detect, Don't Describe --- Describe, Don't Detect, for Local Feature Matching
MIT License
368 stars 19 forks source link

What does the inv_temp variable mean? #26

Open hnyll opened 7 months ago

hnyll commented 7 months ago

i was looking at the code from

https://github.com/Parskatt/DeDoDe/blob/main/demo/demo_match.py

and at line 42 there is a variable named inv_temp but there isn't much description for what it is. Can someone clarify?

Parskatt commented 7 months ago

We match with softmax over scaled cosine similarly. We call the scaling inverse temperature. People often refer to temperature when scaling logits, probably it originally comes from statistical mechanics if you're wondering why its called temperature