Code Monkey home page Code Monkey logo

Comments (3)

tshi04 avatar tshi04 commented on September 18, 2024

After validation, you can find a folder nats_results/model/. This folder stores the best models. The next thing you need to do:

  1. Go to model.py
    Change the modules that you want to transfer from self.train_models to self.base_models.
  2. Go to main.py
    set --base_model_dir to the directory where you store your model files.

from leafnats.

DVillanovaETSINF avatar DVillanovaETSINF commented on September 18, 2024

Alright, I've done that. Now the questions that arise are:

  1. In main.py, should I set the mode to transfer learning or using the pretrained parameters? (option --train_base_model)
  2. Also in main.py, should I set --continue_training to true or false? From what I understand I'm generating a new model from a base one, so it should be false on the first execution (then, if I need to continue training I set it to true).
  3. Should I be using pointer_generator_network or pointer_generator_network_trans? I have trained the model using pointer_generator_network, so when I try to use pointer_generator_network_trans I get an error message saying that embedding_base doesn't exist.

Thanks for the quick reply and for the good work done here, really.

from leafnats.

tshi04 avatar tshi04 commented on September 18, 2024

-train_base_model
true: if you want to also train those parameters.
false: they will be fixed during training.

-continue_training
most of the time, you should let it be true. In case you lost power, or your job is accidentally stopped, you can continue the training.

-you can use either of them. I suggest you use pointer-generator-network, since you can choose which part will be trained and which will be fixed.

from leafnats.

Related Issues (13)

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.