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 assertion #142

Merged
merged 2 commits into from Sep 22, 2020
Merged

fix assertion #142

merged 2 commits into from Sep 22, 2020

Conversation

jin-s13
Copy link
Collaborator

@jin-s13 jin-s13 commented Sep 21, 2020

#138 fix assertion error.

@codecov
Copy link

codecov bot commented Sep 21, 2020

Codecov Report

Merging #142 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #142   +/-   ##
=======================================
  Coverage   81.67%   81.67%           
=======================================
  Files          86       86           
  Lines        5026     5026           
  Branches      870      870           
=======================================
  Hits         4105     4105           
  Misses        767      767           
  Partials      154      154           
Flag Coverage Δ
#unittests 81.67% <100.00%> (ø)

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

Impacted Files Coverage Δ
mmpose/core/post_processing/post_transforms.py 100.00% <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 9e033b1...b912bdd. Read the comment docs.

@@ -105,7 +106,7 @@ def transform_preds(coords, center, scale, output_size):
Returns:
np.ndarray: Predicted coordinates in the images.
"""
assert coords.shape[1] == 2 or coords.shape[1] == 5
assert coords.shape[1] == 2 or coords.shape[1] == 4 or coords.shape[1] == 5
Copy link
Contributor

Choose a reason for hiding this comment

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

coords.shape[1] in (2, 4, 5)

@innerlee innerlee linked an issue Sep 21, 2020 that may be closed by this pull request
@innerlee innerlee merged commit bf66511 into master Sep 22, 2020
@innerlee innerlee deleted the fix_assert branch September 22, 2020 02:40
rollingman1 pushed a commit to rollingman1/mmpose that referenced this pull request Nov 5, 2021
shuheilocale pushed a commit to shuheilocale/mmpose that referenced this pull request May 6, 2023
Co-authored-by: lizz <innerlee@users.noreply.github.com>
ajgrafton pushed a commit to ajgrafton/mmpose that referenced this pull request Mar 6, 2024
Co-authored-by: lizz <innerlee@users.noreply.github.com>
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.

Slow inference of bottom-up models
2 participants