Closed psyntelis closed 10 months ago
Once you loaded the model
and utils
, you can update stable_whisper.stabilization._model_cache
with them and it will use those directly when vad=True
.
model, utils = torch.hub.load(repo_or_dir=path_to_local_dir_with_repo,
model='silero_vad',
source='local',
verbose=True)
stable_whisper.stabilization._model_cache[False] = (model, utils[0])
Hi! Thanks for the amazing repo! This is really a great piece of work. I am trying to run the library in a virtual machine with no access to internet andI can't use VAD.
I tried to set the torch dir using:
torch.hub.set_dir(path_to_the_local_torch_hub_cache)
and point to a dir where i hame manually stored the repo, but it doesn't work.torch.hub.load
stills try to connect to the internet and eventually hangs.To load successfully the repo i used the following command:
Is there another way to load the vad model from a local installation? If not, passing as an argument here wether the
source
is github or local would be useful.