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
Animal Pose estimation using KAPAO #18
Comments
Steps for training on new dataset:
|
@wmcnally thanks for response , did as you have mentioned but i am getting error in val.py file in line number 285, i have verified the values of coco and results which are getting passed into "eval = COCOeval(coco, result, iouType='keypoints')" but i am getting this following error
======================================= Other Failures: Please share your thougths |
If you are using a custom dataset, you cannot use the COCO evaluation toolbox. You should create a new val.py that manually computes the accuracy or loss and return it. |
@wmcnally i am using a standard animal pose dataset ' https://github.com/AlexTheBad/AP-10K " for that also should i manually compute the accuracy and loss ? |
I see. It looks like the annotations are in COCO format so you should be able to use the COCO evaluation tools. The error is a shape mismatch, 20 vs 17. This should provide some clues as to where the bug is. |
@wmcnally thanks for the response , i was able to figure out where the issue was , it was in cocoeval.py in line number 523 "self.kpt_oks_sigmas = np.array([.26, .25, .25, .35, .35, .79, .79, .72, .72, .62,.62, 1.07, 1.07, .87, .87, .89, .89])/10.0" there are only 17 values due to which the error in mis match was happening |
Aren't there only 17 keypoints in the animal pose dataset? I'm confused as to why you have 20. |
@wmcnally oh in animal pose dataset there are 20 key points , should i modify it to have 17 key points only |
@wmcnally based on your suggestion i trained the model with 17 key points and below is the output which i a getting , from the observations key point are getting detected well , but the bounding box are not proper , when debugged it felt that the mosaic augmentation is creating the issue . Would you share ur thougths |
The bounding boxes don't look correct in your training images. Mosaic augmentation is likely not the issue. It is possible that your bounding boxes are in a different format. You should check and fix the format if necessary. |
@Kanav123 thanks for the open source code base I had a few queries
thanks in advance
The text was updated successfully, but these errors were encountered: