Coder Social home page Coder Social logo

Comments (1)

dahyun-kang avatar dahyun-kang commented on May 28, 2024

Hello,

This code does not provide a resume option at this point because training RENet takes a few hours so I used to wait and see ๐Ÿ˜ƒ.

You may want to use the -save_all option for the first run and load_model function for the subsequent run to load the last checkpoint that you saved in the first run. Also, the optimizer should be properly loaded as well, which the official code does not provide.

Below are the code snippets you might want to refer to:

  • ๐Ÿ”ฝ Use the -save_all argument for the first run.

    parser.add_argument('-save_all', action='store_true', help='save models on each epoch')

  • ๐Ÿ”ฝ Call the load_model function right after this line below so that the checkpoint is properly loaded to the model.

    renet/train.py

    Lines 92 to 93 in ee315c1

    model = RENet(args).cuda()
    model = nn.DataParallel(model, device_ids=args.device_ids)

  • ๐Ÿ”ฝ Here is the load_model function in common/utils.py.

    def load_model(model, dir):

Have a great day! ๐Ÿ˜ƒ

from renet.

Related Issues (11)

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.