-
Notifications
You must be signed in to change notification settings - Fork 600
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
COCO OKS Metrics Usage #27
Comments
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. |
Does this piece of code perform the validation: |
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 PCKh@0.5, for COCO using OKS. |
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 |
it seems that for pckh, you are using reference_size =[0.1H, 0.1W] in your code. distance_x/(0.1H) 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 |
Is there a handwritten version of OKS here? Instead of calling the API . |
Hi, I am unable to understand how OKS is calculated in experiments using COCO dataset.
In the train function in
lib/core/function.py
you seem to callaccuracy
from the filelib/core/evaluate.py
. But that accuracy is PCKh right? So how do you calculate OKS.Could you please explain the steps how can I calculate OKS given I use your dataloader?? Thanks alot in advance!!!
The text was updated successfully, but these errors were encountered: