Code Monkey home page Code Monkey logo

Comments (5)

Fangyh09 avatar Fangyh09 commented on May 22, 2024

Hi, I think x and y are swapped.
You can try keypoint = keypoint[:,::-1] after this line
https://github.com/YuliangXiu/MobilePose-pytorch/blob/3a64e58990cfca24b99bb1113d0f6accc2441325/estimator.py#L70

from mobilepose.

musab1234 avatar musab1234 commented on May 22, 2024

Thanks @Fangyh09 , yeah orientations has been fixed now ( by your code snippet) but skeleton is little bit translated to right.

image

from mobilepose.

Fangyh09 avatar Fangyh09 commented on May 22, 2024

I think it needs a vertical flip.
This image is not good to judge, could you try another image which is not so symmetrical?

from mobilepose.

musab1234 avatar musab1234 commented on May 22, 2024

i have swapped points from bottom to top and swapped columns too

keypoints = keypoints[:,::-1]
keypoints = keypoints[::-1,:]

by swaping columns result got more better but same issue with other images too.

test3

from mobilepose.

Fangyh09 avatar Fangyh09 commented on May 22, 2024

https://github.com/YuliangXiu/MobilePose-pytorch/blob/c5abac58ab24d275618d996aff4edbfe32e8c75a/estimator.py#L75

Yeah, I think the above line is not right. You can try to replace it by:

pose_fun = lambda x: ((((x + 1) * self.output_size - 1) / 2.0-[left_pad, top_pad]) * 1.0 /np.array([new_w, new_h])*np.array([w,h]))

from mobilepose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.