Coder Social home page Coder Social logo

Comments (5)

JoeyHeisenberg avatar JoeyHeisenberg commented on May 27, 2024 1

Here is the result
image

from multilingual_text_to_speech.

Tomiinek avatar Tomiinek commented on May 27, 2024

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.

JoeyHeisenberg avatar JoeyHeisenberg commented on May 27, 2024

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.

Tomiinek avatar Tomiinek commented on May 27, 2024

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.

Tomiinek avatar Tomiinek commented on May 27, 2024

Should be solved by 0401a6d. Thank you!

from multilingual_text_to_speech.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.