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

A possible mistake in computing TPS #50

Open
XiaLiPKU opened this issue Mar 30, 2022 · 1 comment
Open

A possible mistake in computing TPS #50

XiaLiPKU opened this issue Mar 30, 2022 · 1 comment

Comments

@XiaLiPKU
Copy link

Hi, Aliaksandr. Your code is really nice.
However, I find a small mistake here from L118 to L120:

distances = torch.abs(distances).sum(-1)

result = distances ** 2

Shouldn't it be result = (distances ** 2).sum(-1)?
With which change, the code will be more consistent with:
https://github.com/tomasjakab/imm/blob/0fee6b24466a5657d66099694f98036c3279b245/imm/utils/tps_sampler.py#L138

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

1 participant