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

Run AlphaPose for all images:TypeError: only integer tensors of a single element can be converted to an index #18

Open
yulin011 opened this issue Nov 30, 2021 · 0 comments

Comments

@yulin011
Copy link

reason:invalid parameter in cv2.ellipse2Poly() in fn.py
raw code:

line 214 in fn.py : polygon = cv2.ellipse2Poly((int(mX),int(mY)), (int(length/2), stickwidth), int(angle), 0, 360, 1)

stickwidth is a float tensor which is not suitable for param.axes in cv2.ellipse2Poly(), so l tried to turn "stickwidth" to "int (stickwidth)",
thus promising code running. but this may affect the pattern of skeleton

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