-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the path to hubconf.py to find models
While `torch.hub.load` uses predictable names when downloading from github, the name referenced only worked when using the `master` branch of the repo. Using a ref like `snakers4/silero_vad:v4.0` results in a different directory name and the model files not being found. Since the model files are stored in a path relative to hubconf.py, use the path of hubconf.py to find the models instead of assuming the directory `torch.hub.load` will extract the files to.
- Loading branch information
1 parent
d5a944b
commit df1d520
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters