Skip to content
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

Fix models.yml loading #162

Merged
merged 1 commit into from
Jun 12, 2022
Merged

Fix models.yml loading #162

merged 1 commit into from
Jun 12, 2022

Conversation

rominf
Copy link
Contributor

@rominf rominf commented Jun 12, 2022

models.yml file is located two directories above silero.py, however
line:

models_list_file = os.path.join(os.path.dirname(__file__), "models.yml")

tries to find it in the same directory.

This results to extra download, which will fail in case current dir is
set to something that is not user-writable.

This commit fixes the path.

`models.yml` file is located two directories above `silero.py`, however
line:

```
models_list_file = os.path.join(os.path.dirname(__file__), "models.yml")
```

tries to find it in the same directory.

This results to extra download, which will fail in case current dir is
set to something that is not user-writable.

This commit fixes the path.
@snakers4
Copy link
Owner

Looks like a good catch

@snakers4 snakers4 merged commit 8d25ae8 into snakers4:master Jun 12, 2022
@rominf rominf deleted the rominf-fix-models.yml-loading branch June 12, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants