Closed sean-afshar closed 1 year ago
TODO (@shrivaths16): Even though we already merged, can we double check against this reference code?
If our new code is exactly equivalent (algorithmically AND mathematically) to this one, then close this issue. A little gist/Colab running both functions standalone would be preferred so we can add tests.
This should be addressed in SLEAP 1.3.2.
Bug description
You multiply by an additional factor of 2 in the sleap.nn.evals compute_oks function on line 206. You can fix this by either deleting the 2 on line 206 https://github.com/talmolab/sleap/blob/c94c75517b34d6c14f4e3bd80695daab372fdf0a/sleap/nn/evals.py#L206 or getting rid of the factor of 2 in both the spread and scale factors and putting the factor of 2 in the normalization_factor variable.
Expected behaviour
This underestimates what the actual oks scores should be.
Actual behaviour
See expected behavior.
Your personal set up
Environment packages
``` # paste output of `pip freeze` or `conda list` here ```Logs
``` # paste relevant logs here, if any ```Screenshots
How to reproduce