Skip to content

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