Giter VIP home page Giter VIP logo

Comments (13)

chaiyujin avatar chaiyujin commented on May 18, 2024 2

@yoyololicon

  1. When training with default model given by this repo, I encounter NAN.
    [Solve]: I initialize the upsample layer weight to be 1.0, bias to be 0.0.
  2. When training with multi-gpus, I encounter NAN again.
    [Solve]: Use one gpu, batch_size = 4

I'm not sure how to avoid nan.
It works to train with inited upsample layer and on one gpu.

from waveglow.

chaiyujin avatar chaiyujin commented on May 18, 2024

I also got negative loss and 'nan' during training.

I moved the waveglow into my training framework and trained it with DataParallel from scratch. It seems that the nll recovered from nan and then became nan again.
waveglow-nll

Besides, the infered samples even reach 1e17.
waveglow-wav

I used hparams:

        sigma                       = 1.0,
        n_flows                     = 12,
        n_group                     = 8,
        n_early_every               = 4,
        n_early_size                = 2,
        wn                          = Config(n_layers=8, n_channels=256, kernel_size=3)

from waveglow.

benlaitang avatar benlaitang commented on May 18, 2024

@chaiyujin so, what's your training framework? retrain from the provided model, did it work? I am lost your words

from waveglow.

chaiyujin avatar chaiyujin commented on May 18, 2024

@benlaitang Sorry about my english. I have my own training framework. I trained glow from scratch. Never test fine-tuning from provided model.

from waveglow.

wenyong-h avatar wenyong-h commented on May 18, 2024

I got exactly the same problem.

from waveglow.

benlaitang avatar benlaitang commented on May 18, 2024

@wenyong-h did you solve the problem?

from waveglow.

wenyong-h avatar wenyong-h commented on May 18, 2024

No, I'm training from scratch now.

from waveglow.

rafaelvalle avatar rafaelvalle commented on May 18, 2024
  1. Yes, the loss should be negative. We trained the model for 580 iterations with batch size 24. 22k iters with batch size 3 is probably not enough to produce intelligible speech.
  2. The second model is shared for inference only, not resuming training.

from waveglow.

benlaitang avatar benlaitang commented on May 18, 2024

@rafaelvalle thanks a lot. I will try from scratch again.

from waveglow.

rafaelvalle avatar rafaelvalle commented on May 18, 2024

Closing. Please re-open if necessary.

from waveglow.

yoyololicon avatar yoyololicon commented on May 18, 2024

@chaiyujin Did you solve the issue of nan loss? Because I encounter similar issue. My training curve is something like these:
2018-11-30 08_36_14-tensorboard
2018-11-29 21_44_22-tensorboard

from waveglow.

rishikksh20 avatar rishikksh20 commented on May 18, 2024

@rafaelvalle is there anyway to fine-tune or re-traing or resume training of the model ?

from waveglow.

scimagian avatar scimagian commented on May 18, 2024

@chaiyujin thanks for your solution. I also met the NAN problem. When I set the one GPU with batch size 1, the training loss is fine. But when I set 8 GPU by using torch.nn.parallel.data_parallel with batch size 8, I got NAN loss after a few thousand steps. I adjust the learning rate from 1e-4 to 1e-5, then solved the NAN problem.

from waveglow.

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.