Borrar filtros
Borrar filtros

Semantic segmentation evaluation results

1 visualización (últimos 30 días)
Meriem YOUss
Meriem YOUss el 19 de Ag. de 2021
Respondida: Vidip el 26 de Mzo. de 2024
Hi
When i try evaluating semantic segmentation results by running "metrics = evaluateSemanticSegmentation(pxdsResults,pximds)" i get this error "size of the categorical data returned by dsResults and dsTruth must be the same". Please how can i fix this

Respuestas (1)

Vidip
Vidip el 26 de Mzo. de 2024
The error message you're encountering, "size of the categorical data returned by dsResults and dsTruth must be the same," suggests that there's a mismatch in dimensions between the predicted segmentation results (pxdsResults) and the ground truth data (pximds).
To fix it, you need to ensure that all images in pxdsResults and pximds have the same dimensions. If the images or their corresponding segmentation masks have been resized or cropped during preprocessing or prediction, you'll need to make sure that both the predictions and the ground truth data are brought to the same dimensions before evaluation. Also, make sure that the categories (classes) in pxdsResults and pximds match exactly.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by