Skip to content

Update demo.py#261

Open
gouravcy wants to merge 1 commit into
clovaai:masterfrom
gouravcy:master
Open

Update demo.py#261
gouravcy wants to merge 1 commit into
clovaai:masterfrom
gouravcy:master

Conversation

@gouravcy

Copy link
Copy Markdown

If the probability of any label is less than 0.5 than we can show both the best and the second best prediction using above code.

If the probability of any label is less than 0.5 than we can show both the best and the second best prediction using above code.
Comment thread demo.py
preds_max_prob, preds_index_prob = preds_prob.max(dim=2)
print(preds_max_prob)
print(preds_max_prob.type)
index=np.zeros((11,26))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, 🙋‍♂️ just looking at line 74
is import numpy as np needed at the front?

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.

2 participants