edge_eval_python icon indicating copy to clipboard operation
edge_eval_python copied to clipboard

IndexError:tuple index out of range

Open Lexie-7 opened this issue 3 years ago • 2 comments

您好,在使用此代码进行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: Boundariesg.item()[1]改成g.item()[0]后可运行代码,但结果和Matlab版不同。 请问应当如何解决?感谢您的回复。

Lexie-7 avatar Jun 25 '22 10:06 Lexie-7

蹲一个回复,同样的问题

yo-WASSUP avatar Jun 27 '22 08:06 yo-WASSUP

我把g.item()[1]改成g.item()[0]后,运行的结果跟matlab版的一样啊

yo-WASSUP avatar Jun 28 '22 02:06 yo-WASSUP