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

Update base.py Fixes: AttributeError: 'dict' object has no attribute 'scores' #185

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

ymoslem
Copy link
Contributor

@ymoslem ymoslem commented Nov 20, 2023

Fixes: AttributeError: 'dict' object has no attribute 'scores' #183

Changed:

scores = torch.cat([pred.scores for pred in predictions], dim=0).tolist()

to:

scores = torch.cat([pred["scores"] for pred in predictions], dim=0).tolist()

Fixes: AttributeError: 'dict' object has no attribute 'scores'

Changed:
```scores = torch.cat([pred.scores for pred in predictions], dim=0).tolist()
```
to:
```
scores = torch.cat([pred["scores"] for pred in predictions], dim=0).tolist()
```
@mjpost
Copy link
Contributor

mjpost commented Jan 4, 2024

Hi @ricardorei, can you do a 2.2.1 release with this fix?

ricardorei pushed a commit that referenced this pull request Jan 8, 2024
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

Successfully merging this pull request may close these issues.

3 participants