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

Error when running synthesizer_train.py > line 35, in <module> #762

Closed
Highpressure opened this issue May 23, 2021 · 1 comment
Closed

Comments

@Highpressure
Copy link

Highpressure commented May 23, 2021

So I have used this git + made my own additions based on padmalcom´s branch to build a fit for me and my german sets.

Anaconda + Enviornment Python on 3.7 with all the pre req´s

I have successfully trained it on the german books padmalcom uses too, but converted them to flac instead using wav´s via batch process in flic flac

I went first with
python encoder_preprocess.py
python encoder_train.py GermanBookMale
python synthesizer_preprocess_audio.py
python synthesizer_preprocess_embeds.py
successfully.

Now i am failing at

(GerVoice3.7) E:\DeepFakes\cleanRTVC>python synthesizer_train.py GermanBookMale E:\DeepFakes\cleanRTVC\SV2TTS\synthesizer
Arguments:
run_id: GermanBookMale
syn_dir: E:\DeepFakes\cleanRTVC\SV2TTS\synthesizer
models_dir: synthesizer/saved_models/
save_every: 1000
backup_every: 25000
force_restart: False
hparams:

Checkpoint path: synthesizer\saved_models\GermanBookMale\GermanBookMale.pt EXISTS, 117mb
Loading training data from: E:\DeepFakes\cleanRTVC\SV2TTS\synthesizer\train.txt EXISTS, 2,85mb
Using model: Tacotron
Using device: cuda <<< 1080 Ti 11GB

Initialising Tacotron Model...

Trainable Parameters: 30.874M

Loading weights at synthesizer\saved_models\GermanBookMale\GermanBookMale.pt
Tacotron weights loaded from step 0
Using inputs from:
E:\DeepFakes\cleanRTVC\SV2TTS\synthesizer\train.txt EXISTS, 2,85mb
E:\DeepFakes\cleanRTVC\SV2TTS\synthesizer\mels EXISTS, 2,10gb
E:\DeepFakes\cleanRTVC\SV2TTS\synthesizer\embeds EXISTS, 54mb

Found 13847 samples
+----------------+------------+---------------+------------------+
| Steps with r=2 | Batch Size | Learning Rate | Outputs/Step (r) |
+----------------+------------+---------------+------------------+
| 20k Steps | 12 | 0.001 | 2 |
+----------------+------------+---------------+------------------+

Traceback (most recent call last):
File "synthesizer_train.py", line 35, in
train(STAR-STAR-SYMBOLvars(args))

File "E:\DeepFakes\cleanRTVC\synthesizer\train.py", line 158, in train
for i, (texts, mels, embeds, idx) in enumerate(data_loader, 1):
File "C:\Users\User\anaconda3\envs\GerVoice3.7\lib\site-packages\torch\utils\data\dataloader.py", line 278, in iter
return _MultiProcessingDataLoaderIter(self)
File "C:\Users\User\anaconda3\envs\GerVoice3.7\lib\site-packages\torch\utils\data\dataloader.py", line 682, in init
w.start()
File "C:\Users\User\anaconda3\envs\GerVoice3.7\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Users\User\anaconda3\envs\GerVoice3.7\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\User\anaconda3\envs\GerVoice3.7\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\User\anaconda3\envs\GerVoice3.7\lib\multiprocessing\popen_spawn_win32.py", line 89, in init
reduction.dump(process_obj, to_child)
File "C:\Users\User\anaconda3\envs\GerVoice3.7\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'train..'

(GerVoice3.7) E:\DeepFakes\cleanRTVC>Traceback (most recent call last):
File "", line 1, in
File "C:\Users\User\anaconda3\envs\GerVoice3.7\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\User\anaconda3\envs\GerVoice3.7\lib\multiprocessing\spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
EOFError: Ran out of input

as add on info:
(GerVoice3.7) E:\DeepFakes\cleanRTVC>conda list torch
Name Version Build Channel
pytorch 1.2.0 py3.7**_cuda100_cudnn7_1** pytorch
torchfile 0.1.0 pypi_0 pypi
torchvision 0.4.0 py37_cu100 pytorch

any hint of what could go wrong here? cant point out an error?

@ghost
Copy link

ghost commented May 30, 2021

Try this: #669 (comment)

@ghost ghost closed this as completed Jun 4, 2021
This issue was closed.
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