I'm building this from scratch to avoid the additional CPP code, and it seems to be working, however, when I compute
and use that as logits for the softmax, the "a" term on large images tend to be very small, and "f" is normalized, so the scalar product gets logits very close to 0, and since softmax is not scale invariant, I get close to uniform predictions...
Thus, I think that you are using some form of temperature, but nor in the code neither in the paper i see any reference to it... can I have some clarification?
At the moment the best I was able to to do (not to handpick the temperature) is to make it trainable:
I'm building this from scratch to avoid the additional CPP code, and it seems to be working, however, when I compute
and use that as logits for the softmax, the "a" term on large images tend to be very small, and "f" is normalized, so the scalar product gets logits very close to 0, and since softmax is not scale invariant, I get close to uniform predictions...
Thus, I think that you are using some form of temperature, but nor in the code neither in the paper i see any reference to it... can I have some clarification?
At the moment the best I was able to to do (not to handpick the temperature) is to make it trainable:
And while training, I see the temperature slowly increasing to 1.2, which is still not enough (at least in my case)