Giter VIP home page Giter VIP logo

Comments (3)

8tm avatar 8tm commented on September 22, 2024

I can take it but first I need to add fix for limiters

from dl-art-school.

152334H avatar 152334H commented on September 22, 2024

Where can I change the path to save the model? I'm training on Colab and I want it to save on Google Drive because when the environment disconnects, I lose all the checkpoints

Previously, I didn't want to symlink the experiments folder with gdrive storage because of how big each checkpoint was, relative to 15GB of free storage

Now that the default mechanism is to autodelete old checkpoints && also to not save unimportant stuff like training states / EMA, i think this is a lot more feasible

from dl-art-school.

HobisPL avatar HobisPL commented on September 22, 2024

Where can I change the path to save the model? I'm training on Colab and I want it to save on Google Drive because when the environment disconnects, I lose all the checkpoints

Previously, I didn't want to symlink the experiments folder with gdrive storage because of how big each checkpoint was, relative to 15GB of free storage

Now that the default mechanism is to autodelete old checkpoints && also to not save unimportant stuff like training states / EMA, i think this is a lot more feasible

# path
if 'path' in opt.keys():
for key, path in opt['path'].items():
if path and key in opt['path'] and (key not in ['strict_load', 'optimizer_reset']):
opt['path'][key] = osp.expanduser(path)
else:
opt['path'] = {}
opt['path']['root'] = osp.abspath(osp.join(__file__, osp.pardir, osp.pardir, osp.pardir))
if is_train:
experiments_root = osp.join(opt['path']['root'], 'experiments', opt['name'])
opt['path']['experiments_root'] = experiments_root
opt['path']['models'] = osp.join(experiments_root, 'models')
opt['path']['training_state'] = osp.join(experiments_root, 'training_state')
opt['path']['log'] = experiments_root
opt['path']['val_images'] = osp.join(experiments_root, 'val_images')
# change some options for debug mode
if 'debug' in opt['name']:
opt['train']['val_freq'] = 8
opt['logger']['print_freq'] = 1
opt['logger']['save_checkpoint_freq'] = 8
else: # test
results_root = osp.join(opt['path']['root'], 'results', opt['name'])
opt['path']['results_root'] = results_root
opt['path']['log'] = results_root
return opt

I think we need to make changes to this file so that it can be edited through the configuration file.

from dl-art-school.

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.