You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using detectron in order to make predictions for 1 class only (with a value of 0). When I try to use the inference_on_dataset() method, I am getting the following error:
[11/22 12:05:36 d2.evaluation.coco_evaluation]: Preparing results for COCO format ...
Validation run stopped due to:A prediction has class=62, but the dataset only has 1 classes and predicted class id should be in [0, 0].
When I try to look at outputs variable containing the pred_classes array in the inference_on_dataset() method (line 165), I see that it contains an array with some 0 values (correct class prediction), but some random values ranging from 0-100 as well, with the first number of the array being 62 (the number in the error). The number of zeros was shortened for readability:
The pred_classes array has the same size as the pred_boxes array, which shows it does contain the right predictions. When I replace the pred_classes array with an array of the same size filled with zeros (expected behavior), the method does not throw an error anymore.
How can I fix this issue?
The text was updated successfully, but these errors were encountered:
You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template.
The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";
Issue with evaluation:
I am using detectron in order to make predictions for 1 class only (with a value of 0). When I try to use the
inference_on_dataset()
method, I am getting the following error:When I try to look at outputs variable containing the pred_classes array in the
inference_on_dataset()
method (line 165), I see that it contains an array with some 0 values (correct class prediction), but some random values ranging from 0-100 as well, with the first number of the array being 62 (the number in the error). The number of zeros was shortened for readability:The
pred_classes
array has the same size as thepred_boxes
array, which shows it does contain the right predictions. When I replace thepred_classes
array with an array of the same size filled with zeros (expected behavior), the method does not throw an error anymore.How can I fix this issue?
The text was updated successfully, but these errors were encountered: