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

GeneratorNet forward pass #4

Closed
ashok-arjun opened this issue Mar 6, 2021 · 2 comments
Closed

GeneratorNet forward pass #4

ashok-arjun opened this issue Mar 6, 2021 · 2 comments

Comments

@ashok-arjun
Copy link

ashok-arjun commented Mar 6, 2021

The forward pass of the GeneratorNet network and Net network (the feature extractor) multiply A_rebuild with self.s which is set to 10 and then passes it to the classifier.

Can you explain what this is? Why can't we pass it directly to the FC layer for classification?

@Yuxin-CV
Copy link
Owner

Yuxin-CV commented Mar 6, 2021

Hi, thanks for your interest in our work.

self.s corresponds to the learnable temperature \alpha described in our paper.
To my knowledge, the term "temperature" comes from [1], and is adopted by [2](which is also cited by us) in few-shot learning.
In a word, softmax w/ learnable temperature \alpha is easier to optimize.
You can refer to [1, 2] for more details.

[1] Distilling the Knowledge in a Neural Network.
[2] Low-shot learning with imprinted weights.

@ashok-arjun
Copy link
Author

Thank you for the explanation! I'm clear now.

Thanks for releasing the code for this great work!

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

2 participants