BenAAndrew / Voice-Cloning-App

A Python/Pytorch app for easily synthesising human voices
BSD 3-Clause "New" or "Revised" License
1.39k stars 233 forks source link

HTTPError #48

Closed ManBearPig87 closed 3 years ago

ManBearPig87 commented 3 years ago

First time user - after uploading .txt and .wav I get the following error. Any guidance?

Type: HTTPError Text: HTTP Error 503: Service Temporarily Unavailable Full: Traceback (most recent call last): File "flask\app.py", line 1950, in full_dispatch_request File "flask\app.py", line 1936, in dispatch_request File "application\views.py", line 99, in create_dataset_post File "dataset\transcribe.py", line 85, in create_transcription_model File "dataset\transcribe.py", line 58, in init File "torch\hub.py", line 364, in load model = _load_local(repo_or_dir, model, *args, *kwargs) File "torch\hub.py", line 393, in _load_local model = entry(args, kwargs) File "C:\Users\Sam London/.cache\torch\hub\snakers4_silero-models_master\hubconf.py", line 28, in silero_stt kwargs) File "C:\Users\Sam London/.cache\torch\hub\snakers4_silero-models_master\utils.py", line 128, in init_jit_model progress=True) File "torch\hub.py", line 419, in download_url_to_file u = urlopen(req) File "urllib\request.py", line 223, in urlopen File "urllib\request.py", line 532, in open File "urllib\request.py", line 642, in http_response File "urllib\request.py", line 570, in error File "urllib\request.py", line 504, in _call_chain File "urllib\request.py", line 650, in http_error_default urllib.error.HTTPError: HTTP Error 503: Service Temporarily Unavailable

BenAAndrew commented 3 years ago

Sounds like you've lost internet connection or the server for silero is down. Can you reach this link: https://models.silero.ai/models/en/en_v3_jit.model ?

ManBearPig87 commented 3 years ago

Yes, the link works, strange... I wonder if a firewall could be causing this issue

ManBearPig87 commented 3 years ago

Also thank you for the quick response!

BenAAndrew commented 3 years ago

No problem. Sounds like a possible network issue on your side. The first time you use the app it needs to download data for the transcription tool (https://github.com/snakers4/silero-models) which is why this is generating a network error.

ManBearPig87 commented 3 years ago

I'll dig in - does any of this seem relevant? From the executable script

[16408] WARNING: file already exists but should not: C:\Users\SAMLON~1\AppData\Local\Temp_MEI164082\torch_C.cp36-win_amd64.pyd Server initialized for threading. Server initialized for threading. INFO:matplotlib.font_manager:generated new fontManager [nltk_data] Downloading package wordnet to C:\Users\SAMLON~1\AppData\L [nltk_data] ocal\Temp_MEI164082\nltk_data... [nltk_data] Package wordnet is already up-to-date! WARNING:werkzeug:WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.

On Tue, Jul 27, 2021 at 4:01 PM BenAAndrew @.***> wrote:

No problem. Does sound like a possible network issue on your side. The first time you use the app it needs to download data for the transcription tool which is why this is generating a network error.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BenAAndrew/Voice-Cloning-App/issues/48#issuecomment-887795647, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU7Y3KD2LJRJN3SN7PRUFWDTZ4GA3ANCNFSM5BCUSC3Q .

ManBearPig87 commented 3 years ago

So I tried a few things including copying the source code to root and now I'm getting the following - could this be a folder permissions issue? Sorry to be a pest, just really interested in demoing this software if I can get it to work :/

Type: OSError Text: [Errno 22] Invalid argument: 'tmpmm96uy_m' Full: Traceback (most recent call last): File "flask\app.py", line 1950, in full_dispatch_request File "flask\app.py", line 1936, in dispatch_request File "application\views.py", line 98, in create_dataset_post File "dataset\transcribe.py", line 85, in create_transcription_model File "dataset\transcribe.py", line 58, in init File "torch\hub.py", line 364, in load model = _load_local(repo_or_dir, model, *args, *kwargs) File "torch\hub.py", line 393, in _load_local model = entry(args, **kwargs) File "C:\Users\Sam London/.cache\torch\hub\snakers4_silero-models_master\hubconf.py", line 22, in silero_stt progress=False) File "torch\hub.py", line 433, in download_url_to_file f = tempfile.NamedTemporaryFile(delete=False, dir=dst_dir) File "tempfile.py", line 551, in NamedTemporaryFile File "tempfile.py", line 262, in _mkstemp_inner OSError: [Errno 22] Invalid argument: 'tmpmm96uy_m'

BenAAndrew commented 3 years ago

That's a weird one. Sounds like it's struggling to delete a temporary file but doesn't seem to be due to permissions. If you are familiar with python could you try adding this to a script and executing it. Might make the issue clearer to solve

import torch

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model, decoder, _ = torch.hub.load(repo_or_dir="snakers4/silero-models", model="silero_stt", language="en", device=device)
ManBearPig87 commented 3 years ago

Unfortunately, not coding savvy but maybe I will spend some time with it. I did try to clear the files myself and start fresh and am still getting this error. Appreciate the efforts!

BenAAndrew commented 3 years ago

Sorry to hear this. If you want you could join the discord where others may be able to propose solutions. Unfortunately, this issue is with https://github.com/snakers4/silero-models and I'm not familiar with their system. It may be worth sharing this issue on their repo to see if they have any suggestions.

BenAAndrew commented 3 years ago

Any news on this?

ManBearPig87 commented 3 years ago

I've tried a few different approaches including removing all files manually and reinstalling python, still no luck unfortunately! If I have time in the future I may partition Linux and go that route

On Fri, Aug 6, 2021, 12:01 PM BenAAndrew @.***> wrote:

Any news on this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BenAAndrew/Voice-Cloning-App/issues/48#issuecomment-894357818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU7Y3KCUWFCJCCEKKNCL2D3T3QBMJANCNFSM5BCUSC3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

BenAAndrew commented 3 years ago

Sounds like you've had some really bad luck with this. I haven't heard of anyone having this problem. Did you raise an issue on the silero github?

BenAAndrew commented 3 years ago

Closing as the issue is not directly due to the app. Please reopen if you find a fix