Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError:tuple index out of range #15

Open
Lexie-7 opened this issue Jun 25, 2022 · 2 comments
Open

IndexError:tuple index out of range #15

Lexie-7 opened this issue Jun 25, 2022 · 2 comments

Comments

@Lexie-7
Copy link

Lexie-7 commented Jun 25, 2022

您好,在使用此代码进行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版不同。
请问应当如何解决?感谢您的回复。

@yo-WASSUP
Copy link

蹲一个回复,同样的问题

@yo-WASSUP
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants