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

fix bugs in pck calculation #328

Merged
merged 3 commits into from
Dec 1, 2020
Merged

fix bugs in pck calculation #328

merged 3 commits into from
Dec 1, 2020

Conversation

jin-s13
Copy link
Collaborator

@jin-s13 jin-s13 commented Dec 1, 2020

No description provided.

@@ -16,17 +16,20 @@ def _calc_distances(preds, targets, mask, normalize):
Args:
preds (np.ndarray[N, K, 2]): Predicted keypoint location.
targets (np.ndarray[N, K, 2]): Groundtruth keypoint location.
normalize (np.ndarray[N, 2]): Typical value is heatmap_size/10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happened to this /10

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/10 or 0.1 should not be in normalize, but thr.
In other words, thr=0.1 and normalize=heatmap_size, is more reasonable.

@codecov
Copy link

codecov bot commented Dec 1, 2020

Codecov Report

Merging #328 (1cefdf0) into master (0765325) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #328   +/-   ##
=======================================
  Coverage   83.85%   83.85%           
=======================================
  Files         115      115           
  Lines        7257     7257           
  Branches     1151     1151           
=======================================
  Hits         6085     6085           
  Misses        955      955           
  Partials      217      217           
Flag Coverage Δ
unittests 83.85% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmpose/core/evaluation/top_down_eval.py 84.44% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0765325...bb58500. Read the comment docs.

@innerlee
Copy link
Contributor

innerlee commented Dec 1, 2020

Add a test case that making the previous code error?

@jin-s13
Copy link
Collaborator Author

jin-s13 commented Dec 1, 2020

Will add a test case soon.
And some results in README, should be updated.

@innerlee innerlee merged commit 8800e8d into master Dec 1, 2020
@innerlee innerlee deleted the fix_pck branch December 2, 2020 08:32
shuheilocale pushed a commit to shuheilocale/mmpose that referenced this pull request May 6, 2023
* fix bugs in pck calculation

* update notes and comments

* update readme and add unit-tests
HAOCHENYE added a commit to HAOCHENYE/mmpose that referenced this pull request Jun 27, 2023
* clean code

* fix as comment

* fix as comment

* add get_registry_by_scope method

* add unit test and docstring example

* rename get_registry_by_scope to switch_scope_and_registry

* move build function to registry/builder

* fix docstring

* rename builder->registry_builder, move build_from_cfg to registry_builder

rename builder->registry_builder, move build_from_cfg to registry_builder

* rename registry_builder to build_function

rename registry_builder to build_function

* fix docstring and type hint

* rename build_function to build_functions
ajgrafton pushed a commit to ajgrafton/mmpose that referenced this pull request Mar 6, 2024
* fix bugs in pck calculation

* update notes and comments

* update readme and add unit-tests
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

Successfully merging this pull request may close these issues.

None yet

2 participants