verify_files() function doesn't work
See original GitHub issueWhen 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:
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:
- Created 2 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, the score stays the same now. Thank you 😃 @Gastron
I’ve edited the embedding normalization on HuggingFace. Does this solve the issue for you as well, @talgoldengoren ?