Skip to content

IndexError:tuple index out of range  #15

@Lexie-7

Description

@Lexie-7

您好,在使用此代码进行Multicue-boundary数据集评测时,会出现IndexError:tuple index out of range 这个错误,但在BSDS500数据集中可以正常运行,二者GT都是由5人平均得来的,形式相同。
报错位置为
gt = [g.item()[1] for g in loadmat(gt)["groundTruth"][0]] # 0: Segmentation, 1: Boundaries
g.item()[1]改成g.item()[0]后可运行代码,但结果和Matlab版不同。
请问应当如何解决?感谢您的回复。

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