Skip to content

Error in edges_eval_img #11

@Melkor007

Description

@Melkor007

Hi, I tried to run your code and encountered an error in function edges_eval_img(): TypeError: 'int' object is not subscriptable. I looked into it and found this line hard to understand:
gt = [g.item()[1] for g in loadmat(gt)["groundTruth"][0]] # 0: Segmentation, 1: Boundaries
as I understand it, "loadmat(gt)["groundTruth"]" altogether should be a 2-D numpy array for a ground truth image, but in that case g.item()[1] makes no sense. So what is the right data format of gt?

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