-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Add a test case that making the previous code error? |
Will add a test case soon. |
* fix bugs in pck calculation * update notes and comments * update readme and add unit-tests
* 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
* fix bugs in pck calculation * update notes and comments * update readme and add unit-tests
No description provided.