Command Used:
OMP_NUM_THREADS=1 CUDA_VISIBLE_DEVICES=0 python3 train_tts.py
but getting Error:
Traceback (most recent call last):
File “/home/ubuntu/drive_a/mayank/TTS/TTS/bin/train_tts.py”, line 715, in
main(args)
File “/home/ubuntu/drive_a/mayank/TTS/TTS/bin/train_tts.py”, line 627, in main
global_step, epoch, amp, speaker_mapping)
File “/home/ubuntu/drive_a/mayank/TTS/TTS/bin/train_tts.py”, line 163, in train
text_input, text_lengths, mel_input, mel_lengths, speaker_ids=speaker_ids, speaker_embeddings=speaker_embeddings)
File “/home/ubuntu/.local/lib/python3.6/site-packages/torch/nn/modules/module.py”, line 550, in call
result = self.forward(*input, **kwargs)
File “/home/ubuntu/drive_a/mayank/TTS/TTS/tts/models/tacotron2.py”, line 138, in forward
decoder_outputs_backward, alignments_backward = self._coarse_decoder_pass(mel_specs, encoder_outputs, alignments, input_mask)
File “/home/ubuntu/drive_a/mayank/TTS/TTS/tts/models/tacotron_abstract.py”, line 158, in _coarse_decoder_pass
encoder_outputs.detach(), mel_specs, input_mask)
File “/home/ubuntu/.local/lib/python3.6/site-packages/torch/nn/modules/module.py”, line 550, in call
result = self.forward(*input, **kwargs)
File “/home/ubuntu/drive_a/mayank/TTS/TTS/tts/layers/tacotron2.py”, line 326, in forward
decoder_output, attention_weights, stop_token = self.decode(memory)
File “/home/ubuntu/drive_a/mayank/TTS/TTS/tts/layers/tacotron2.py”, line 287, in decode
dim=1)
RuntimeError: CUDA out of memory. Tried to allocate 2.00 MiB (GPU 0; 7.80 GiB total capacity; 6.93 GiB already allocated; 2.31 MiB free; 6.98 GiB reserved in total by PyTorch)
As suggested in other threads, Reduced batch_size to 16(from 32) but same error is occuring
Since I have 2 GPUs, Thus tried the below command:
CUDA_VISIBLE_DEVICES=0,1 python /
home/
ubuntu
/drive_a/mayank/TTS/
TTS/bin/
distribute
.py --config_path /
home/
ubuntu
/drive_a/mayank/TTS/
TTS/tts/configs/config.json
but getting error:
Traceback (most recent call last):
File “/home/ubuntu/drive_a/mayank/TTS/TTS/bin/distribute.py”, line 69, in
main()
File “/home/ubuntu/drive_a/mayank/TTS/TTS/bin/distribute.py”, line 46, in main
command = [os.path.join(folder_path, args.script)]
File “/home/ubuntu/.conda/envs/mayank_tts/lib/python3.6/posixpath.py”, line 94, in join
genericpath._check_arg_types(‘join’, a, *p)
File “/home/ubuntu/.conda/envs/mayank_tts/lib/python3.6/genericpath.py”, line 149, in _check_arg_types
(funcname, s.class.name)) from None
TypeError: join() argument must be str or bytes, not 'NoneType
also tried:
CUDA_VISIBLE_DEVICES=’0,1’ python /
home/
ubuntu
/drive_a/mayank/TTS/
TTS/bin/
distribute
.py --config_path /
home/
ubuntu
/drive_a/mayank/TTS/
TTS/tts/configs/config.json
same error as above