Giter Club home page Giter Club logo

Comments (11)

a3626a avatar a3626a commented on May 31, 2024 2

I found similar error.

In my case,
model_1/model/ResidualConv1dGLU_0/residual_block_cin_conv/bias_residual_block_cin_conv/ExponentialMovingAverage was saved as model_1/model_1/model/ResidualConv1dGLU_0/residual_block_cin_conv/bias_residual_block_cin_conv/ExponentialMovingAverage.

You can edit your create_shadow_saver to load variables with those names.

You can inspect your .ckpt file using

from tensorflow.python.tools import inspect_checkpoint as chkp

chkp.print_tensors_in_checkpoint_file("logs/wavenet_r9y9/model/model.ckpt-50000", tensor_name='', all_tensors=True, all_tensor_names=True)

from tacotron-2.

navidnadery avatar navidnadery commented on May 31, 2024

@a3626a Thank you very much.
But I ran again to see whats happened, and I found this error during training:
"tensorflow.python.framework.errors_impl.CancelledError: Enqueue operation was cancelled"
exactly after: "Tacotron training complete after 85000 global steps!"

from tacotron-2.

a3626a avatar a3626a commented on May 31, 2024

log('Tacotron training complete after {} global steps!'.format(args.tacotron_train_steps))
return save_dir

Check your command line argument tacotron_train_steps

from tacotron-2.

navidnadery avatar navidnadery commented on May 31, 2024

Yeah, I got it. Thank you very much. I really appreciate.

from tacotron-2.

navidnadery avatar navidnadery commented on May 31, 2024

Hi again.
@a3626a Thank you, I used your help (editing names of variables from model_1 to model) and it loaded those models without problem, but it errors for models in encoder and decoder parts of wavenet. I've checked variables during training and non of the variables are found in training variables during training. How can I handle this?
Here is an example of the error:

model/model/inference/decoder/Location_Sensitive_Attention/attention_bias/ExponentialMovingAverage

from tacotron-2.

a3626a avatar a3626a commented on May 31, 2024

Inside your checkpoint, trainable variables (tf.trainable_variabels()) are not saved, their Exponential Moving Averages are saved.

Can you explain what you are trying to do?

  1. Load trained model and synthesis
  2. Load trained model and continue training
  3. Just to start training

from tacotron-2.

navidnadery avatar navidnadery commented on May 31, 2024

1 and 2 both have been tried. Actually, I want 1.

from tacotron-2.

victorkohler avatar victorkohler commented on May 31, 2024

Hello! I'm getting the same errors as described above.

When loading the trained model and running synthesis using --model='Both' it's looking for "model_1/model/..." rather than "model/model/..."

I updated create_shadow_saver to replace "model_1" with "model" but then run into the following error:
NotFoundError (see above for traceback): Key model/model/inference/decoder/Location_Sensitive_Attention/attention_bias/ExponentialMovingAverage not found in checkpoint

I usde print_tensors_in_checkpoint_file and as far as I can tell this name is not stored in the checkpoint file at all.

Anyone know what is going on here? Thanks!

from tacotron-2.

navidnadery avatar navidnadery commented on May 31, 2024

create_shadow_saver selects some variables for saving. You can comment this part and use tf.saver.save to save whole tensor variables. Then you have to change synthesis part for loading saved tensors.

from tacotron-2.

Yeongtae avatar Yeongtae commented on May 31, 2024

Check it.
https://github.com/Rayhane-mamah/Tacotron-2/pulls

from tacotron-2.

Rayhane-mamah avatar Rayhane-mamah commented on May 31, 2024

Hello, I can't quite manage to reproduce with latest commit, I am closing this as I believe it was fixed meanwhile. If the problem persists feel free to reopen!

I also disabled training with "Both" as it seems to be causing problems for many people, so now simply use "Tacotron-2" for both models.

from tacotron-2.

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.