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
Feature request - Offline use of model #108
Comments
Hi,
Many thanks for catching this, this is a valid edge case. This is not intentional. Originally I believed that people using these models locally would just override the
I do not know why I overlooked this method A small PR would be greatly appreciated. |
@snakers4 I have added a small fix to the issue. |
Just a small question, why use |
|
fix local load snakers4/silero-models/#108
Merged #111 |
Please verify, that it runs locally with your build now and close |
At the moment it is nearly impossible to create a docker container that works offline (without internet access).
Even if you include this line during docker build:
RUN python -c "import torch; torch.backends.quantized.engine='qnnpack'; torch.hub.load(repo_or_dir='snakers4/silero-models', model='silero_te', force_reload=True)"
During execution of the docker container (without internet) you load it locally:
torch.hub.load(repo_or_dir='/root/.cache/torch/hub/snakers4_silero-models_master', model='silero_te', source='local', force_reload=False)
Then you have the problem that the hubconf.py is called again (and fails due to no internet access) and it tries to download the files in hubconf.py Lines 21, 49, 101, even though they already exist.
So my suggestion would be to also includes checks in the Lines 21,49,101 to check if the file already exists locally and if yes then skip it (like done in Line 114)
Any reasons against that?
The text was updated successfully, but these errors were encountered: