1

I'm really new to this field of computer vision. I have used this repo https://github.com/theAIGuysCode/yolov4-custom-functions.

system: Win 10 name: yolov4-gpu dependencies:

  • python==3.7
  • pip
  • matplotlib
  • opencv
  • cudnn
  • cudatoolkit==10.1.243
  • pip:
    • tensorflow-gpu==2.3.0rc0
    • opencv-python==4.1.1.26
    • lxml
    • tqdm
    • absl-py
    • easydict
    • pillow
    • pytesseract I want to find the metrics for this model. Please help. Thanks in advance.
berak
  • 1,226
  • 2
  • 5
  • 7
Shaik
  • 11
  • 1
  • this is more of a statistics question, we dont need to see your pip packages. but are you aware, that you need **labelled data**,(ground truth) to run a benchmark ? – berak Sep 13 '22 at 07:08
  • Thanks for the reply. Really I don't know. I'm new to programing. I have followed a video and run the object detection code. It given me the output now I stuck with evaluating the model. Please suggest me how to calculate all the metrics. Thanks in advance. – Shaik Sep 15 '22 at 04:38

1 Answers1

0

You can use this package (disclaimer: I’m the author) to compute all COCO metrics for a given couple of ground truths and predicted bounding boxes. You can install it using pip:

pip install globox

You first need to save the predictions in any supported format. For instance, if both the ground truths and the predictions are saved in YOLO format (txt files) you can print COCO metrics with:

from globox import AnnotationSet, COCOEvaluator

gts = AnnotationSet.from_yolo("yolo/gts/folder/")
preds = AnnotationSet.from_yolo("yolo/preds/folder/")

evaluator = COCOEvaluator(gts, preds)
evaluator.show_summary()

You can achieve the same thing from the command line:

globox evaluate yolo/gts/folder/ yolo/preds/folder --format yolo --format_dets yolo

If you don't or can't save the predictions to in one of the supported format, you can parse them using the BoundingBox.create(...) function.

Take a look at the README of the repo for further information.

The confusion matrix can be computed with the help of this other package.

Louis Lac
  • 5,298
  • 1
  • 21
  • 36
  • Thank you so much @Louis Lac for the response. I will try what ever you have suggested. I will let you know whether I'm getting it or not. Thank you once again. – Shaik Nov 01 '22 at 06:51
  • @Shaik did it solved your question? – Louis Lac Dec 07 '22 at 10:55