question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Output detection metrics/bounding boxes overlaid on ground truth boxes

See original GitHub issue

Using the tutorial https://gilberttanner.com/blog/detectron-2-object-detection-with-pytorch, I managed to get my custom dataset running and detecting (NOTE: My dataset is a single class, and I am doing plain old non-rotated bounding boxes). I have registered my coco instances using the following chunk of code to get separate train/validation sets:

# Register training dataset register_coco_instances("breaks_train", {}, "/gdrive/blah/drive/here/folder/train.json", "/gdrive/some/folder/here/trainandvalidfolders/Train")

# Register validation dataset register_coco_instances("breaks_valid", {}, "/gdrive/blah/drive/here/folder/valid.json", "/gdrive/some/folder/here/trainandvalidfolders/Valid")

After training, I would like to get back the AP and AR, and any other metrics that may be useful. Ideally, I’d like to be able to ouput a Precision-Recall curve for various IOU values like in the COCO challenge. I’m kind of a noob to object detection and pytorch in general, so any code snippets or chunks would be very appreciated!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Labaien96commented, Jun 25, 2020

Hi @djpecot , I also want to visualize bot GT boxes and predicted boxes in the same image, do you know how to do it?

1reaction
ppwwyyxxcommented, Jan 2, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

A Better mAP for Object Detection | by Ivan Ralašić
To recap, the output of an object detector is characterized by a bounding box, a class, and a confidence score. The confidence score...
Read more >
Tutorial: Measuring the accuracy of bounding box image ...
The measure works by calculating the overlapping areas of intersection between two bounding boxes, divided by the total area of both bounding boxes....
Read more >
Object Detection Evaluation Metric Explained | by Jiang Wang
Object detection model predicts a bounding box for each object in an image to localize the objects. We usually use mean average precision ......
Read more >
Selection of object detections using overlap map predictions
Set-NMS works by using an object detection model which predicts sets of bounding boxes instead of individual bounding boxes. As a result, two ......
Read more >
Compute Accuracy For Object Detection (Image Analyst)
The table contains accuracy metrics for each class in the detected data, ... The total area of the predicted bounding box and ground...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found