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

Question about DistanceNetwork #21

Open
zdaiot opened this issue Sep 20, 2019 · 3 comments
Open

Question about DistanceNetwork #21

zdaiot opened this issue Sep 20, 2019 · 3 comments

Comments

@zdaiot
Copy link

zdaiot commented Sep 20, 2019

Thanks for your code! I have two question about the code:

First, When calculating the cosine distance, I think it should also be divided by the L2 norms of input_image, but now it seems to be divided only by the L2 norms of support_image.

Second, can you explain in detail the efficient implementation of cross entropy? or what literature I should consult

@lwzhaojun
Copy link

I also have this question. Can you solve it?

@zdaiot
Copy link
Author

zdaiot commented Nov 13, 2019

I'm sorry. I haven't solved it yet.

@lwzhaojun
Copy link

Initially I went that way and with the setup I had then the optimization
was more unstable, so I had a look in other optimizations and found that
others did not scale by the target as well. Sometimes having too small a
loss can cause gradient propagation issues. However since then I improved
multiple parts of the system so using both support and target magnitudes
might not be such a bad idea. Have a try if you want and let me know if it
works.
The above is the reply of the author of the paper.

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