GithubHelp home page GithubHelp logo

BlazePose Output about pinto_model_zoo HOT 10 CLOSED

pinto0309 avatar pinto0309 commented on May 16, 2024
BlazePose Output

from pinto_model_zoo.

Comments (10)

Laubeee avatar Laubeee commented on May 16, 2024 3

I actually get even more, I get 195 outputs, which corersponds to 5values for 39 keypoints. I have not yet found out what the 5th value is for. I have been looking into other things since, but initial results for display were more or less OK when interpreting the 195 values as 39x5 array and taking the first two columns as X/Y values. If you have 156, just use 39x4, it should be fine.

from pinto_model_zoo.

PINTO0309 avatar PINTO0309 commented on May 16, 2024

The following implementation is helpful. It doesn't seem to be necessary to use all the key points.
https://github.com/terryky/tfjs_webgl_app/tree/master/blazepose_fullbody

from pinto_model_zoo.

PINTO0309 avatar PINTO0309 commented on May 16, 2024

It is closed due to lack of progress.

from pinto_model_zoo.

Laubeee avatar Laubeee commented on May 16, 2024

In case this is still of interest: the model card might help a little.

Output(s)
33x3 array corresponding to (x, y, visibility). X, Y
coordinates are local to the region of interest and range
from [0.0, 255.0]. Visibility is in the range of [min_float,
max_float] and after user-applied sigmoid denotes the
probability that a keypoint is located within the frame. It
does not indicate whether the keypoint is occluded by
another body part.

although various sources state that
a) there are in fact 39kp (33+6 "technical" ones describing center, rotation and ROI)
b) each keypoint has in fact 4 values (x, y, z, visibility), but z-estimation is currently not really well implemented and should not be used in production.

from pinto_model_zoo.

ashutoshsoni891 avatar ashutoshsoni891 commented on May 16, 2024

Hi @Laubeee @PINTO0309 , I am facing same problem in Visualization of those 156 keypoints . Can you please help me out

from pinto_model_zoo.

ashutoshsoni891 avatar ashutoshsoni891 commented on May 16, 2024

Cool @Laubeee ! Let me try it then :).

from pinto_model_zoo.

ashutoshsoni891 avatar ashutoshsoni891 commented on May 16, 2024

I have tried plotting the points as suggested by @Laubeee but seems like the points are not accurate.

def convert_preds_to_xy(preds):

    kpts = []
    temp = preds[2][0]
    for x,y in zip(temp[::4] , temp[1::4]):
        kpts.append((int(x),int(y)))
    return kpts 

When I run the script 11_pose_landmark_full_body_tflite2h5_weight_int_fullint_float16_quant.py which generates 2 .H5 file which are

full_pose_landmark_39kp.h5
full_pose_detection.h5

Also I have lot of -ve points as a predictions
and I am using full_pose_landmark_39kp.h5 . I believe I am not using the right weights file , @PINTO0309 can you please share/suggest me the right weights file ?

from pinto_model_zoo.

Laubeee avatar Laubeee commented on May 16, 2024

Looks like you figured it in that other thread, might I ask what was the problem?

from pinto_model_zoo.

ashutoshsoni891 avatar ashutoshsoni891 commented on May 16, 2024

Hi @Laubeee !
I had 2 problems . The very first one you have solved ( I had 156 points as an predicted output , so I took X/Y pairs as you suggested and it worked )
The 2nd one is visualization. I have developed a code snippet , you can access it from here : #76 (comment)

from pinto_model_zoo.

s-kav avatar s-kav commented on May 16, 2024

Hi @Laubeee !
Perhaps you can help me with my issue.
I used BlazePose and I'm training on my new specific dataset (30 k labeled images), but after some epochs and usage of Early Stopping, I have obtained a model, which get me in output (on test set) always the same values (numbers of coordinates) for any image.
What do you think about this? Perhaps, you can propose some ways for the solution of this issue.

from pinto_model_zoo.

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.