question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to save model with same filename?

See original GitHub issue

🚀 Feature

Hi @vfdev-5 ,

I found that CheckpointHandler can’t use the fixed filename to save latest model: https://github.com/pytorch/ignite/blob/v0.4.2/ignite/handlers/checkpoint.py#L149 But this is a very important requirement on our side…How can I achieve that? For example, I want to always save the best model as model.pt after validations during training.

Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vfdev-5commented, Nov 1, 2020

Hi @Nic-Ma , #1423 should enable support for fixed filenames. It will be available in the next stable release and now is available on nightly.

1reaction
Nic-Macommented, Oct 30, 2020

Hi @vfdev-5 , sure, submitted ticket: https://github.com/pytorch/ignite/issues/1422 Can we keep this issue open to track? Until you guys officially support fixed file name?

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I save models with unique names? - Stack Overflow
Probably I am writing the file name incorrectly but I am new to python and i could not fix it myself. seq_lens =...
Read more >
Save and load Keras models | TensorFlow Core
When saving the model and its layers, the SavedModel format stores the class name, call function, losses, and weights (and the config, if ......
Read more >
How to Save and Load Your Keras Deep Learning Model
You can save your model by calling the save() function on the model and specifying the filename. The example below demonstrates this by...
Read more >
Save Simulink model - MATLAB save_system - MathWorks
filename = save_system saves the current top-level model. If the model was not previously saved, save_system creates a file in the current folder....
Read more >
Save & Restore Files - Documentation - Weights & Biases
Save a model file from the current directory ... If you create new files in the same path after calling wandb.save we will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found