edge_eval_python
edge_eval_python copied to clipboard
IndexError:tuple index out of range
您好,在使用此代码进行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版不同。
请问应当如何解决?感谢您的回复。
蹲一个回复,同样的问题
我把g.item()[1]改成g.item()[0]后,运行的结果跟matlab版的一样啊