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

Evaluation: TypeError: 'NoneType' object is not subscriptable #332

Closed
xcvil opened this issue Jan 6, 2023 · 1 comment
Closed

Evaluation: TypeError: 'NoneType' object is not subscriptable #332

xcvil opened this issue Jan 6, 2023 · 1 comment

Comments

@xcvil
Copy link
Contributor

xcvil commented Jan 6, 2023

In evaluate.py line 159:

if isinstance(scores[0], tuple):

I would suggest considering the NoneType scenario, e.g., in OFA/utils/eval_utils.py line 55.

So it will be bug-free if you modify evaluate.py line 159 as below:

if scores and isinstance(scores[0], tuple):
@JustinLin610
Copy link
Member

Good! Review has started yet.

@xcvil xcvil closed this as completed Jan 11, 2023
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