-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading older versions (v3.1 and v4) on non-clean installations via torch.hub #474
Comments
Hi, which issue are you having with v5? |
ERROR: Provided number of samples is 27936 (Supported values: 256 for 8000 sample rate, 512 for 16000) |
Hi, this is correct behavior, the VAD always had limitations regarding the chunk size, and now the chunk size is fixed as noted in the error message. Also probably a more proper way to hack into probabilities would be just to extend the get_speech_timestamps function. |
The code worked up to recently, it's broken since v5 released yesterday. Is there a way I can load the previous version to quickly fix the problem until I have time to fix properly? |
Your code ran, but it produced incorrect results since vad never worked with such large chunks. In your case v4.0 does not load because it looks like pytorch caches the hubconf file or the full repo. From a fresh environment any version loads. We removed old unused utils in 5.0, so after removing cache everything should work. |
This issue ( From the line above, the model attempts to be loaded from I see in the latest release (v5.0), this @snakers4 could the loading JIT model code in v4.0 be updated to match what is in v5.0? Otherwise I think trying to download v4.0 will continue to have this issue. |
Many thanks, we arrived at the same conclusion. Hence the issue with "non-clean" initialization, when the init is "tainted" with loading several versions at once. We are thinking now how to fix git history properly, there are 3 versions now - v5.0, v4.0 and v3.1 that people remember. Ideally, ofc, we would deprecate the old ones, but being able to load the earlier model easily on a non-clean environment is a nice feature, e.g. for benchmarking. |
@snakers4 , if possible please don't deprecate the old versions yet. I use version 3.1 for transcribing long form anime movies and so far it works best. Thanks. |
A possible solution would be to create historic branches for |
fixed v3.1 and v4.0 tags |
tags for if so, a PR would be appreciated for this line |
Please can someone verify that this now works. |
Hello I just tried, I got When using I'm on Windows |
Hi
|
It worked ! I tried to load both v4 and v5 in the same jupyter notebook (I wanted to make a benchmark between both versions), that's why I got this conflict. |
@dgoryeo @rvryan67 @ggoedde @helloWorld199 @hungiito please verify that these fixes work for you |
I can report that the fixes work. I tried V4 in colab environment and V3.1 in Windows environment (after cleaning the local cache). |
Confirmed that v4.0 works in Databricks environment. Thanks! |
Looks like that we have 3 confirmations. |
❓ Questions and Help
I'm having issues with latest version v5.0
Until I get time to investigate and fix the issue I want to use the previous version,
vad, utils = torch.hub.load( repo_or_dir="snakers4/silero-vad:v4.0", model="silero_vad", onnx=False )
This results in the following error:
The provided filename /root/.cache/torch/hub/snakers4_silero-vad_master/files/silero_vad.jit does not exist
The text was updated successfully, but these errors were encountered: