question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

verify_files() function doesn't work

See original GitHub issue

When I try to verify 2 audio files with the function verify_files() with the next few lines of code:

from speechbrain.pretrained import SpeakerRecognition
verification = SpeakerRecognition.from_hparams(source="speechbrain/spkrec-ecapa-voxceleb", savedir="pretrained_models/spkrec-ecapa-voxceleb")
score, prediction = verification.verify_files("voxceleb1/wav/id10270/5r0dWxy17C8/00010.wav", "voxceleb1/wav/id10305/19OCRADWjgA/00006.wav")
print(score)

The resulting behavior is weird. It works like a decreasing counter. Every time I run these lines:

score, prediction = verification.verify_files("voxceleb1/wav/id10270/5r0dWxy17C8/00010.wav", "voxceleb1/wav/id10305/19OCRADWjgA/00006.wav")
print(score)

The score is decreasing in 0.0001.

So if I run a loop:

for i in range(10):
  score, prediction = verification.verify_files("voxceleb1/wav/id10270/5r0dWxy17C8/00010.wav", "voxceleb1/wav/id10305/19OCRADWjgA/00006.wav")
  print(score)

This is the result: image

I think It may be a problem in the verify_files() method, I tried it with many different files and from different computers and with different pretrained models (ECAPA, XVectors), it was always the same, a decreasing counter.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
talgoldengorencommented, Oct 6, 2021

Yes, the score stays the same now. Thank you 😃 @Gastron

1reaction
Gastroncommented, Oct 5, 2021

I’ve edited the embedding normalization on HuggingFace. Does this solve the issue for you as well, @talgoldengoren ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Verify data on a file - python - Stack Overflow
The function doesn't work and I don't know why. I tried to debug it, but still not able to find the error, maybe...
Read more >
Verify Integrity of Game Files - Steam Support
If you are missing textures or other content in game or experiencing crashing while playing a game, you can have Steam verify that...
Read more >
Files do not open in Excel or "File Not Found" occurs when ...
If you are trying to open the file from your list of most recently used files on the File menu, make sure that...
Read more >
How to Verify Downloaded Files | DigitalOcean
Verifying downloaded files ensures that what you downloaded is what you think it is. In this tutorial, you'll learn what file verification ......
Read more >
Validate PowerShell to Check if a File Exists (Examples)
The result indicates whether the file exists or not. Below is the basic syntax to make the Test-Path cmdlet work with checking a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found