Git Product home page Git Product logo

Comments (9)

r9y9 avatar r9y9 commented on May 26, 2024

Please make sure that you are on the specific git commit noted in the table https://github.com/r9y9/deepvoice3_pytorch#pretrained-models.

from deepvoice3_pytorch.

nfrik avatar nfrik commented on May 26, 2024

Ok thank you!

from deepvoice3_pytorch.

nfrik avatar nfrik commented on May 26, 2024

Unfortunately the problem still persists. I replaced master branch installation with 0421749 commit and still receive the same error.

from deepvoice3_pytorch.

r9y9 avatar r9y9 commented on May 26, 2024

Could you provide what command and model you are using? I want to reproduce it locally.

from deepvoice3_pytorch.

nfrik avatar nfrik commented on May 26, 2024

From 0421749 commit I run the following script:
python3 synthesis.py ./models/20171222_deepvoice3_vctk108_checkpoint_step000300000 ./models/text_list.txt ./models/

Here is the complete output:

Command line args:
{'--checkpoint-postnet': None,
'--checkpoint-seq2seq': None,
'--file-name-suffix': '',
'--help': False,
'--hparams': '',
'--max-decoder-steps': '500',
'--output-html': False,
'--replace_pronunciation_prob': '0.0',
'--speaker_id': None,
'': './models/20171222_deepvoice3_vctk108_checkpoint_step000300000',
'<dst_dir>': './models/',
'<text_list_file>': './models/text_list.txt'}
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/nn/modules/module.py", line 482, in load_state_dict
own_state[name].copy_(param)
RuntimeError: invalid argument 2: sizes do not match at /pytorch/torch/lib/THC/generic/THCTensorCopy.c:101

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "synthesis.py", line 125, in
model.load_state_dict(checkpoint["state_dict"])
File "/usr/local/lib/python3.5/dist-packages/torch/nn/modules/module.py", line 487, in load_state_dict
.format(name, own_state[name].size(), param.size()))
RuntimeError: While copying the parameter named seq2seq.encoder.embed_tokens.weight, whose dimensions in the model are torch.Size([149, 128]) and whose dimensions in the checkpoint are torch.Size([149, 256]).

from deepvoice3_pytorch.

r9y9 avatar r9y9 commented on May 26, 2024

Okay, the problem is that you didn't specify proper hyper parameters. Try adding the additional command line args: --hparams="builder=deepvoice3_vctk,preset=deepvoice3_vctk". Also, you have to specify speaker_id as well for multi-speaker model. Try adding --speaker_id=0.

from deepvoice3_pytorch.

nfrik avatar nfrik commented on May 26, 2024

Thanks for the hparams, totally missed that. I followed your recommendations, except, I set builder to deepvoice3_multispeaker and I was able to produce wav files.

from deepvoice3_pytorch.

mrgloom avatar mrgloom commented on May 26, 2024

python synthesis.py --hparams="builder=deepvoice3_vctk,preset=deepvoice3_vctk" ./20171222_deepvoice3_vctk108_checkpoint_step000300000.pth ./sentences.txt ./temp

Command line args:
 {'--checkpoint-postnet': None,
 '--checkpoint-seq2seq': None,
 '--file-name-suffix': '',
 '--help': False,
 '--hparams': 'builder=deepvoice3_vctk,preset=deepvoice3_vctk',
 '--max-decoder-steps': '500',
 '--output-html': False,
 '--replace_pronunciation_prob': '0.0',
 '--speaker_id': None,
 '<checkpoint>': './20171222_deepvoice3_vctk108_checkpoint_step000300000.pth',
 '<dst_dir>': './temp',
 '<text_list_file>': './sentences.txt'}
Override hyper parameters with preset "deepvoice3_vctk": {
    "n_speakers": 108,
    "speaker_embed_dim": 16,
    "downsample_step": 4,
    "outputs_per_step": 1,
    "embedding_weight_std": 0.1,
    "speaker_embedding_weight_std": 0.05,
    "dropout": 0.050000000000000044,
    "kernel_size": 3,
    "text_embed_dim": 256,
    "encoder_channels": 512,
    "decoder_channels": 256,
    "converter_channels": 256,
    "use_guided_attention": true,
    "guided_attention_sigma": 0.4,
    "binary_divergence_weight": 0.1,
    "use_decoder_state_for_postnet_input": true,
    "max_positions": 1024,
    "query_position_rate": 2.0,
    "key_position_rate": 7.6,
    "key_projection": true,
    "value_projection": true,
    "clip_thresh": 0.1,
    "initial_learning_rate": 0.0005
}
Traceback (most recent call last):
  File "synthesis.py", line 115, in <module>
    model = build_model()
  File "/Users/my_user/external_projects/text-to-speech/deepvoice3_pytorch-multi-speaker/train.py", line 766, in build_model
    model = getattr(builder, hparams.builder)(
AttributeError: module 'deepvoice3_pytorch.builder' has no attribute 'deepvoice3_vctk'

Related:
#151

from deepvoice3_pytorch.

mennatallah644 avatar mennatallah644 commented on May 26, 2024

@r9y9
i put the same command but i got this error
with id

from deepvoice3_pytorch.

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.