You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find that the score is taken as the opposite number in the code. Why is the final score calculated in this way?
The equation (9) in the paper is:
The following is the code implementation:
This might be a legacy typo. The composition score simulating the OR operator uses the function $-logsumexp(-e_1-e_2)$ in [1], while we adopt a different definition of energy functions $p(x) = e^{E(x)}$ to align with the definition of the OOD score.
In our experiments, I recall that the results using torch.logsumexp(torch.stack((e1, e2), dim=0), dim=0) and -torch.logsumexp(torch.stack((-e1, -e2), dim=0), dim=0) were similar (though I am not completely certain as it has been some time since then). If you are interested, feel free to give it a try.
[1] Du et al. Compositional Visual Generation with Energy Based Models. NeurIPS 2020.
I find that the score is taken as the opposite number in the code. Why is the final score calculated in this way?

The equation (9) in the paper is:
The following is the code implementation:
The text was updated successfully, but these errors were encountered: