BenAAndrew / Voice-Cloning-App

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

Transcription error: wav file is empty #11

Closed GregoryBetsey closed 3 years ago

GregoryBetsey commented 3 years ago

Hello

I am running the Voice-Cloning-App.exe on Windows 10. I have a GeForce RTX 2060 Graphics Card with the GeForce Game Ready Driver Version 461.92.

When I attempt build the data set, the windows console stops after the following:

[12644] WARNING: file already exists but should not: C:\Users\GREGOR~1\AppData\Local\Temp_MEI126442\torch_C.cp38-win_amd64.pyd Server initialized for threading. Server initialized for threading. pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work torchaudio\extension\extension.py:14: UserWarning: torchaudio C++ extension is not available. torchaudio\backend\utils.py:63: UserWarning: The interface of "soundfile" backend is planned to change in 0.8.0 to match that of "sox_io" backend and the current interface will be removed in 0.9.0. To use the new interface, do torchaudio.USE_SOUNDFILE_LEGACY_INTERFACE = False before setting the backend to "soundfile". Please refer to https://github.com/pytorch/audio/issues/903 for the detail. INFO:matplotlib.font_manager:Generating new fontManager, this may take some time... [nltk_data] Downloading package wordnet to C:\Users\GREGOR~1\AppData\L [nltk_data] ocal\Temp_MEI126442\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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "threading.py", line 932, in _bootstrap_inner File "threading.py", line 870, in run File "application\utils.py", line 50, in backgroundtask inputs[i, :len(wav)].copy(wav) NameError: name 'traceback' is not defined qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 00:58:32] "GET /socket.io/?EIO=4&transport=polling&t=NXjKvy4&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 00:58:32] "POST /socket.io/?EIO=4&transport=polling&t=NXjKyzw&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 00:58:57] "GET /socket.io/?EIO=4&transport=polling&t=NXjKyzw.0&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 00:58:57] "POST /socket.io/?EIO=4&transport=polling&t=NXjL358&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 00:59:22] "GET /socket.io/?EIO=4&transport=polling&t=NXjL358.0&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 00:59:22] "POST /socket.io/?EIO=4&transport=polling&t=NXjL9CA&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 00:59:47] "GET /socket.io/?EIO=4&transport=polling&t=NXjL9CB&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 00:59:47] "POST /socket.io/?EIO=4&transport=polling&t=NXjLFJ8&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:00:12] "GET /socket.io/?EIO=4&transport=polling&t=NXjLFJ8.0&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:00:12] "POST /socket.io/?EIO=4&transport=polling&t=NXjLLQ8&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:00:37] "GET /socket.io/?EIO=4&transport=polling&t=NXjLLQ9&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:00:37] "POST /socket.io/?EIO=4&transport=polling&t=NXjLRWz&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:01:02] "GET /socket.io/?EIO=4&transport=polling&t=NXjLRW-&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:01:02] "POST /socket.io/?EIO=4&transport=polling&t=NXjLXe3&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:01:27] "GET /socket.io/?EIO=4&transport=polling&t=NXjLXe4&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:01:27] "POST /socket.io/?EIO=4&transport=polling&t=NXjLdkv&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:01:52] "GET /socket.io/?EIO=4&transport=polling&t=NXjLdkv.0&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:01:52] "POST /socket.io/?EIO=4&transport=polling&t=NXjLjrp&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:02:17] "GET /socket.io/?EIO=4&transport=polling&t=NXjLjrq&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:02:17] "POST /socket.io/?EIO=4&transport=polling&t=NXjLpyh&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:02:42] "GET /socket.io/?EIO=4&transport=polling&t=NXjLpyh.0&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet PING data None qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:02:42] "POST /socket.io/?EIO=4&transport=polling&t=NXjLw3g&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 - qINJoZN0iSsAW66FAAAA: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [26/Mar/2021 01:03:07] "qINJoZN0iSsAW66FAAAA: Received packet CLOSE data GET /socket.io/?EIO=4&transport=polling&t=NXjLw3g.0&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1qINJoZN0iSsAW66FAAAA: Client is gone, closing socket Error.txt

BenAAndrew commented 3 years ago

@RayDAnt3D @ironpanther @arthur465 @GregoryBetsey I've rewritten the timestamp function to fix this. Added in https://github.com/BenAAndrew/Voice-Cloning-App/releases/tag/v0.7. Please test if you get a chance

arthur465 commented 3 years ago

@RayDAnt3D @ironpanther @arthur465 @GregoryBetsey I've rewritten the timestamp function to fix this. Will be added in release 0.7. Please test if you get a chance

It looks like it's working!

Capture checkpoint

KoolenDasheppi commented 3 years ago

Release 0.7 fixed it for me (I've been keeping an eye on this repo and this issue so I can know when it got fixed). I'm also excited about the HiFi-GAN addition. Thanks for developing this by the way, you're doing an awesome job!

RayDAnt3D commented 3 years ago

It's fixed for me! Currently doing my first training run now.

ironpanther commented 3 years ago

The .wav generation/clips seems to work now, and it gets much further, but it's been "stuck in a loop" for a while now----I have:

Coverting data\datasets\Kate\audio.mp3... Loading script from data\datasets\Kate\text.txt... Searching text for matching fragments... Changing sample rate... Fetching segments... Matching segments... Generating segments...

And the cmd window just keeps repeating:
INFO:engineio.server:Fo5fjmXqSKaqAfxdAAAC: Sending packet PING data None Fo5fjmXqSKaqAfxdAAAC: Received packet PONG data INFO:engineio.server:Fo5fjmXqSKaqAfxdAAAC: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [24/Apr/2021 15:54:33] "POST /socket.io/?EIO=4&transport=polling&t=Na5gP-I&sid=Fo5fjmXqSKaqAfxdAAAC HTTP/1.1" 200 - Fo5fjmXqSKaqAfxdAAAC: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [24/Apr/2021 15:54:58] "GET /socket.io/?EIO=4&transport=polling&t=Na5gP-K&sid=Fo5fjmXqSKaqAfxdAAAC HTTP/1.1" 200 - INFO:engineio.server:Fo5fjmXqSKaqAfxdAAAC: Sending packet PING data None Fo5fjmXqSKaqAfxdAAAC: Received packet PONG data INFO:engineio.server:Fo5fjmXqSKaqAfxdAAAC: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [24/Apr/2021 15:54:58] "POST /socket.io/?EIO=4&transport=polling&t=Na5gWB0&sid=Fo5fjmXqSKaqAfxdAAAC HTTP/1.1" 200 - Fo5fjmXqSKaqAfxdAAAC: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [24/Apr/2021 15:55:23] "GET /socket.io/?EIO=4&transport=polling&t=Na5gWB1&sid=Fo5fjmXqSKaqAfxdAAAC HTTP/1.1" 200 - INFO:engineio.server:Fo5fjmXqSKaqAfxdAAAC: Sending packet PING data None Fo5fjmXqSKaqAfxdAAAC: Received packet PONG data INFO:engineio.server:Fo5fjmXqSKaqAfxdAAAC: Received packet PONG data INFO:werkzeug:127.0.0.1 - - [24/Apr/2021 15:55:23] "POST /socket.io/?EIO=4&transport=polling&t=Na5gcM6&sid=Fo5fjmXqSKaqAfxdAAAC HTTP/1.1" 200 - Fo5fjmXqSKaqAfxdAAAC: Sending packet PING data None INFO:werkzeug:127.0.0.1 - - [24/Apr/2021 15:55:48] "GET /socket.io/?

::edit:: saw something new while typing--- INFO:engineio.server:M-50GuX-ODIZG_s_AAAE: Received packet CLOSE data INFO:engineio.server:M-50GuX-ODIZG_s_AAAE: Client is gone, closing socket

Could a future version, have an option on which browser to open with? I think that being able to choose chrome etc, may work better, as my PC has 4 different browsers, and all behave differently when running scripts.

ironpanther commented 3 years ago

Update----I "let the browser window it opened automatically" just sit there, and opened a new browser window but in chrome, and that worked. So I think either "let user choose browser, or default to chrome browser instead of OS browser" is a needed option.

::edit:: Would also suggest that in train.py, "ITERS_PER_CHECKPOINT = 1000" be lowered----currently, that results in only saving approximately once per hour, on my GTX 1080. I could easily lose internet connection etc before it saves again, and lose many iterations. Or if I wish to stop for a while, and do something else with my GPU, after 45 mins of training--that would all be lost, as it wouldn't have saved since then. "Manual save" and/or more frequent checkpoints would also allow more experimenting with determining optimum batch size etc.

BenAAndrew commented 3 years ago

@ironpanther thanks for the feedback. Trying to handle the non-default browser is a bit complex and also the browser shouldn't affect performance. Additionally, the app does not need an internet connection to run (despite running in the browser).

As for the "stuck in a loop" I don't think it is, those messages are just logging for the app and not the process itself. It may take a while to finish processing even after the progress bar is done.

Changing the checkpoint frequency is a good idea and I will add in the future

BenAAndrew commented 3 years ago

Closing as everyone seems happy this particular issue is now fixed. If it has not been fixed please reopen it.