Eval json problem, don't show any statistic. #652
-
I ran the "predict" command providing the .json file associated with the photos: !sahi predict --source /content/drive/MyDrive/ColabNotebooks/WeedNew/Test --dataset_json_path /content/drive/MyDrive/ColabNotebooks/WeedNew/Test/test.json --model_type yolov5 --model_path /content/drive/MyDrive/ColabNotebooks/WeedNew/weed6.pt --slice_height 640 --slice_width 640 --export_visual --overlap_height_ratio 0.4 --overlap_width_ratio 0.4 --export_pickle Then i use the coco evaluate !sahi coco evaluate --dataset_json_path /content/drive/MyDrive/ColabNotebooks/WeedNew/Test/test.json --result_json_path /content/runs/predict/exp2/result.json But i get this: Viewing the visuals with ground truth I see errors, but the results in general are excellent, I don't understand why it gives me those numbers. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
@claudio9russo7 have you your dataset.json category ids are properly set, see this discussion on how to update your dataset categories: https://github.com/obss/sahi/issues/273#issuecomment-992317552 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply, I checked as you said. Actually the ids were wrong by 1. I fixed the problem, making them match, but unfortunately the problem persists. Training the model I got a mAP_0.5 of 0.3, and from the photos I see it does a good job. I don't understand these statistics |
Beta Was this translation helpful? Give feedback.
-
I solved the category_id problem, now I'm sure. As you said it was the only problem, in fact now I have consistent numbers. |
Beta Was this translation helpful? Give feedback.
-
I made the same mistake as you. I checked my json file, but I didn't find any mistake. May I ask what was wrong with your json file |
Beta Was this translation helpful? Give feedback.
@claudio9russo7 have you your dataset.json category ids are properly set, see this discussion on how to update your dataset categories: https://github.com/obss/sahi/issues/273#issuecomment-992317552