Comments (5)
from multilingual_text_to_speech.
Hi, could you please provide the .json
file with parameters you are using?
There is a mismatch in shapes. You are using the generated encoder, so the batch_size
must be divisible by the number of lanugages you are training on times the number of GPUs. So let's say you are trianing on CSS10 with 10 languages and you want to use 3 GPUs, then set the batch_size
parameter to 30, 60, 90, ...
Hope it helps 😁
from multilingual_text_to_speech.
The above results are actually with the batch_size setting to 60
I tried to set to 180, but it still failed
Original Traceback (most recent call last): File "/data/glusterfs_speech_tts/public_data/11104653/tools/miniconda3/envs/envMTS/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py", line 60, in _worker output = module(*input, **kwargs) File "/data/glusterfs_speech_tts/public_data/11104653/tools/miniconda3/envs/envMTS/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__ result = self.forward(*input, **kwargs) File "/data/glusterfs_speech_tts/public_data/11104653/multiLingual_voice_cloning/Multilingual_Text_to_Speech/modules/tacotron2.py", line 364, in forward encoded = self._encoder(embedded, text_length, languages) File "/data/glusterfs_speech_tts/public_data/11104653/tools/miniconda3/envs/envMTS/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__ result = self.forward(*input, **kwargs) File "/data/glusterfs_speech_tts/public_data/11104653/multiLingual_voice_cloning/Multilingual_Text_to_Speech/modules/encoder.py", line 208, in forward x = x.reshape(bs // self._groups, self._groups * self._input_dim, -1) RuntimeError: shape '[3, 5120, -1]' is invalid for input of size 2994176
HERE IS THE .json
{ "balanced_sampling": true, "batch_size": 180, "case_sensitive": false, "characters": " abcdefghijklmnopqrstuvwxyzçèéßäöōǎǐíǒàáǔüèéìūòóùúāēěīâêôûñőűабвгдежзийклмнопрстуфхцчшщъыьэюяёάέήίαβγδεζηθικλμνξοπρςíστυφχψωόύώ", "checkpoint_each_epochs": 5, "dataset": "css10", "encoder_dimension": 256, "encoder_type": "generated", "epochs": 300, "generator_bottleneck_dim": 8, "generator_dim": 20, "languages": ["german", "french", "hungarian", "chinese", "spanish", "dutch", "finnish", "russian", "japanese", "greek"], "language_embedding_dimension": 32, "learning_rate": 0.001, "learning_rate_decay_each": 10000, "learning_rate_decay_start": 10000, "multi_language": true, "perfect_sampling": true, "predict_linear": false, "version": "GENERATED-TRAINING" }
from multilingual_text_to_speech.
Oh, ok. Still can't figure out where is the problem 😢
Could you please place print(x.shape)
to the line 197 of encoder.py
and send me the output? I cannot test it myself now.
If you want to make it working immediately, change line 229 in train.py
from:
eval_sampler = PerfectBatchSampler(dataset.dev, hp.languages, hp.batch_size, data_parallel_devices=dp_devices, shuffle=False)
to
eval_sampler = PerfectBatchSampler(dataset.dev, hp.languages, hp.batch_size, data_parallel_devices=dp_devices, shuffle=False, drop_last=True)
and it should work.
from multilingual_text_to_speech.
Should be solved by 0401a6d. Thank you!
from multilingual_text_to_speech.
Related Issues (20)
- Adding support for windows sapi5 or android HOT 4
- Voice cloning attempts HOT 1
- Model is much slower on CPU HOT 6
- No softmax layer in the classifier? HOT 1
- Params.py issue
- torch version issue HOT 4
- can't run train.py HOT 1
- data HOT 3
- When I try to train it, I got the following error: HOT 6
- How "Pronunciation control" can be implemented? HOT 1
- batchnorm1D on padded values results in large activation scaling HOT 3
- Project dependencies may have API risk issues HOT 2
- about µ and variances σ HOT 5
- Dataset with various sample rates and frequency bins HOT 1
- preprocess Error HOT 1
- Can we get a cloned voicie in Real Time ? HOT 1
- is the pretrained model support speech generation in Hebrew? HOT 1
- CUDA Out of Memory error after a couple of epochs HOT 1
- Same here.
- why do we need multiple languages & multiple speakers? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multilingual_text_to_speech.