Code Monkey home page Code Monkey logo

Comments (5)

wangtianrui avatar wangtianrui commented on September 25, 2024

The code has an automatic learning rate adjustment mechanism and early stop mechanism.
Adjustment mechanism: The learning rate is reduced by 50 percent if the loss of 3 epochs in the test set is not decreased
Early stop mechanism: The loss of 20 epochs in the test set does not drop, and the training stops. And keep the best model

# BaseModel.py
if self.conf["train"]["half_lr"]:
    self.scheduler = ReduceLROnPlateau(
        optimizer=self.optimizer, factor=self.conf["scheduler"]["factor"],
        patience=self.conf["scheduler"]["patience"], verbose=self.conf["scheduler"]["verbose"]
    )
if self.conf["train"]["early_stop"]:
    self.early_stop = EarlyStopping(monitor="val_loss", patience=20, verbose=True)

You can change the corresponding values according to your needs. In my memory, training set losses of -23.5 or more are better

from dccrn.

agunapal avatar agunapal commented on September 25, 2024

Thank you. I guess there is some issue with the prediction code? .Even after training for 1 epoch, when I run inference, I get the audio output to be the same as input. I would have expected the output to be worse than the input

from dccrn.

wangtianrui avatar wangtianrui commented on September 25, 2024

Could you please show your code and results? Is the spectrogram the same?

from dccrn.

agunapal avatar agunapal commented on September 25, 2024

Thanks for getting back. I just needed to train more. I am seeing a difference in the spectrogram. Will continue training
inp
out

from dccrn.

hdmjdp avatar hdmjdp commented on September 25, 2024

@agunapal can you show me the loss log, why my loss is around 12 in epoch 2?

from dccrn.

Related Issues (19)

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.