"Compute Accuracy For Object Detection" does not find any "True Positives"

185
9
3 weeks ago
Labels (1)
rachbauer
New Contributor II

Hello everyone!

I encountered a problem with the Tool "Compute Accuracy For Object Detection" that does not make any sense to me. Maybe someone of you has any idea about this:

I created a MaskRCNN Model and used it to detect objects in a single image (for testing purposes). I want to see how well this model performs, which is why I use ground truth data of 50 images to compare my detection to (ground truth data covers the single image i used). I can clearly see, that some of my detections (pink) overlap with the ground truth data from that specific image (highlighted in cyan):

rachbauer_0-1715077978156.png

However, when i use "Compute Accuracy For Object Detection" it only shows false_positives and false_negative:

rachbauer_1-1715078006972.png

If anyone has any idea, it would be of great help! Thanks 🙂

0 Kudos
9 Replies
ShivaniPathak
Esri Contributor

Hi, Can you also share the screenshot of "Compute Accuracy For Object Detection" tool parameters which you used.

0 Kudos
rachbauer
New Contributor II

Hey,

So after i tried many different things, the original data from my post got lost. However, i recreated the problem, just with a different image but the same problem. Here is what i did:

1) Detect Objects using Deep Learning:

rachbauer_0-1715334264493.png

2) Define Projections for all layers to get everthing into the same coord.sys. (Otherwise ComputeAccuracy... does not work, I found this solution somewhere on the internet) 

3) Compute Accuracy using Deep Learning:

rachbauer_1-1715334416307.png

 

After this, I get again no positive detections, even though i can clearly see some in the map. Here are some additional informations:

Ground Truth data: 

rachbauer_2-1715334589313.png

Detected Objects:

rachbauer_3-1715334627859.png

 

0 Kudos
ShivaniPathak
Esri Contributor

Hi,

I can also check whether both the feature layers have same spatial reference or projection?

0 Kudos
rachbauer
New Contributor II

Yes they have the same spatial reference:

Detected Features:

rachbauer_2-1715335511911.png

Ground Truth:

rachbauer_3-1715335548765.png

 

0 Kudos
ShivaniPathak
Esri Contributor

Hi,

Can you also check whether both the feature layers (Detected testing and GTD_testing) have same spatial reference or projection?

0 Kudos
rachbauer
New Contributor II

Yes it's the same (see above) 

0 Kudos
PavanYadav
Esri Contributor

@rachbauer because in your screen capture, I see some overlap that's why I feel like it should work. Just for a test, please try 0.1, 0.2, 0.3 values and see if any of them returns anything meaningful.. next you can look at your data and decide a value. I often use 0.1, in cases when I feel some overlap is sufficient. 

0 Kudos
rachbauer
New Contributor II

Hey,

I just tried values ranging from 0.001 to 0.4, but it did not help. I was thinking that maybe there is something wrong with the fields. Am i right to assume that i can just create new fields (with any name) for the detected and ground truth data and fill them with any value, e.g. 2 (for both)? 

0 Kudos
PavanYadav
Esri Contributor

@rachbauer in your screen capture, I noticed you did not set the 'Detect Class Value Field' and the 'Ground Truth Class Value Field' values, can you please make sure right fields are selected?. here a screen capture of one of my working tests

PavanYadav_0-1716926887017.png

If this does not work, would you like to share you test data (both detections and ground truths), just few records? If so, please email at pyadav AT esri DOT com. 

Best!
Pavan

 

0 Kudos