Replies: 1 comment 2 replies
-
Hi, We take top1 value here as argmax to get highest probablity label, https://github.com/NVIDIA/NeMo/blob/e070e04ea219a53842bc6c3adb461a7b96c52519/examples/speaker_recognition/speaker_reco_infer.py#L122 . 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
Uh oh!
There was an error while loading. Please reload this page.
-
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