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

bug: Only iterate over directories #189

Open
bitplane opened this issue Dec 1, 2024 · 1 comment
Open

bug: Only iterate over directories #189

bitplane opened this issue Dec 1, 2024 · 1 comment

Comments

@bitplane
Copy link
Contributor

bitplane commented Dec 1, 2024

saving this here so I don't forget:

zipping up hifigan via the command line, ended up with this:

Type: NotADirectoryError
Text: [Errno 20] Not a directory: '/app/data/hifigan_training/vocoder.tgz'
Full: Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/opt/conda/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/app/application/views.py", line 287, in get_synthesis_setup hifigan_custom_models=get_hifigan_checkpoints(), File "/app/application/views.py", line 86, in get_hifigan_checkpoints for model in os.listdir(paths["hifigan_training"]) File "/app/application/views.py", line 87, in <dictcomp> if os.listdir(os.path.join(paths["hifigan_training"], model)) NotADirectoryError: [Errno 20] Not a directory: '/app/data/hifigan_training/vocoder.tgz' 
@bitplane
Copy link
Contributor Author

bitplane commented Dec 1, 2024

Same in models dir:

#183

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

No branches or pull requests

1 participant