Skip to content

MeanIoU metric gives ValueError #49

Open
@Barthas255

Description

@Barthas255

Hi, Im testing DeepLabV3+ for 2 class segmentation task and wanted to change the metric. Accuracy is pretty useless in my scenario, since I'm trying to detect buldings on orthophotomap, and the rest is just background.
But when I try to change metric to IoU (or MeanIoU) I'm welcomed with this ValueError:

image
image

I tried looking for the answer on the internet, wasn't successful.
I tried to implement my own IoU like this:

image

but this sometimes gives values outside of range (0,1), which is bad.
Also I believe somehow y_pred and y_true don't have the same dimensions, which is odd for me:

image

I might be missing something obvious
Any solutions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions