Replies: 1 comment 2 replies
-
Hi, We take top1 value here as argmax to get highest probablity label, . Instead if you would like to get the probability as well as indices of those labels, you may replace it with torch.topk https://pytorch.org/docs/stable/generated/torch.topk.html and handle outputs of topk function accordingly. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
I was wondering if there is a way to get the confidence/probability in each label in the
SpeakerNet
model (in Speaker Identification)? For example, if I have three speakers/labels in fine-tuning data, one audio for inference, how can I obtain the probability of the speaker beinglabel1
,label2
, andlabel3
? Thanks in advance for your help!Cheers!
Xu
Beta Was this translation helpful? Give feedback.
All reactions