Giter Site home page Giter Site logo

Comments (6)

leoxiaobin avatar leoxiaobin commented on May 18, 2024 1

We use a simple PCKh metric to evaluate our training procedure, and we only use OKS for validation procedure, you can look into the code at https://github.com/Microsoft/human-pose-estimation.pytorch/blob/d69ed56bdbc1f16a288921e302c87fcb33554e37/lib/dataset/coco.py#L273.

from human-pose-estimation.pytorch.

YuQi9797 avatar YuQi9797 commented on May 18, 2024 1

Is there a handwritten version of OKS here? Instead of calling the API .

from human-pose-estimation.pytorch.

Naman-ntc avatar Naman-ntc commented on May 18, 2024

Does this piece of code perform the validation:
https://github.com/Microsoft/human-pose-estimation.pytorch/blob/d69ed56bdbc1f16a288921e302c87fcb33554e37/lib/core/function.py#L180-L182
I see that you perform validation on the whole dataset at once after concatenating the all_boxes and all_preds for complete dataset!
Is it not possible to compute OKS individually for sample? (Sorry if this is dumb question, I haven't really understood OKS properly yet)

from human-pose-estimation.pytorch.

leoxiaobin avatar leoxiaobin commented on May 18, 2024

Yes, the code is for OKS evaluation. You can also compute OKS for any number of sample. I designed it like this, because that I want use a simple PKCh metric to track the training procedure for any dataset. And for different dataset, it has its own evaluate metric, for example, for MPII using [email protected], for COCO using OKS.

from human-pose-estimation.pytorch.

Naman-ntc avatar Naman-ntc commented on May 18, 2024

Yeah i finally got my hands dirty with it. I was able to implement and train stacked hourglass with it. Thanks for putting the wonderful code and such great response

from human-pose-estimation.pytorch.

hengck23 avatar hengck23 commented on May 18, 2024

it seems that for pckh, you are using reference_size =[0.1H, 0.1W] in your code.

distance_x/(0.1H)
distance_y/(0.1
W)

the reference_size for x,y seems to be flipped by mistake?


see evaluate.py:

def accuracy(output, target, hm_type='gaussian', thr=0.5):

... norm = np.ones((pred.shape[0], 2)) * np.array([h, w]) / 10

from human-pose-estimation.pytorch.

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.