Skip to content

creating coco formatted result.json with sahi predict CLI command for coco evaluation #336

Answered by fcakyon
isspid asked this question in Q&A
Discussion options

You must be logged in to vote

@isspid thanks for bringing this up. This has been answered before: https://github.com/obss/sahi/issues/273#issuecomment-971402591

But I will briefly explain again 🚀

  1. You have to prepare a COCO formatted dataset (image folder and COCO formatted dataset.json).
  2. sahi predict --source coco/image/folder --dataset_json_path coco_dataset.json + other arguments will export a results.json.
  3. using dataset.json and result.json you run sahi coco evaluate --dataset_json_path dataset.json --result_json_path result.json.
  4. eval.json containing coco evaluation results will be exported.
  5. (bonus) you can generate coco error analysis plots by sahi coco analyse --dataset_json_path dataset.json --result_json_path…

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
10 replies
@isspid
Comment options

@dimpolitik
Comment options

@isspid
Comment options

@dimpolitik
Comment options

@isspid
Comment options

Answer selected by fcakyon
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dimpolitik
Comment options

@isspid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants