Skip to content

Shape error in IOU calculation #3

@farhadinima75

Description

@farhadinima75

Hi there.
In the evaluation step, I've got this error:

	  File "train.py", line 119, in <module>
	    intr, unn = calMetric_iou(gt_value, result)
	  File "./DSAMNet/data_utils.py", line 17, in calMetric_iou
	    tp = np.sum(np.logical_and(predict == 1, label == 1))
	ValueError: operands could not be broadcast together with shapes (16,256,256) (16,64,256,256)

BatchSize is 16 and I use default parameters.
The output of the model (prob) is with the shape: torch.Size([16, 64, 256, 256]) and this is the cause of error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions