Engineering-Course / LIP_JPPNet

Code repository for Joint Body Parsing & Pose Estimation Network, T-PAMI 2018
MIT License
341 stars 87 forks source link

How to calculate IOUs? #24

Closed tengteng95 closed 6 years ago

tengteng95 commented 6 years ago

Could you please tell me how to calculate IOUs ?

Engineering-Course commented 6 years ago

See this example

tengteng95 commented 6 years ago

Thanks for your reply. But I met some trouble when running the evaluation code.

when exectuting this line of code in function fast_hist return np.bincount(n * a[k].astype(int) + b[k], minlength=n**2).reshape(n, n) ValueError: total size of new array must be unchanged

It seems the results of np.bincount should be 20*20 for LIP, but I got 404 in my case.

result images and label images are both pixel-wise label in range(0,20). Do you know what the problem is ?