wav2letter icon indicating copy to clipboard operation
wav2letter copied to clipboard

How to save latest n checkpoints?

Open GabrielLin opened this issue 6 years ago • 4 comments

Could you please tell to how to config to save latest n checkpoints? The default recipe only save the best and last one checkpoint. Thanks.

GabrielLin avatar Mar 31 '19 07:03 GabrielLin

You can use the itersave option, which will save the model at the end of each epoch: https://github.com/facebookresearch/wav2letter/blob/master/src/common/Defines.cpp

sdht0 avatar Apr 05 '19 05:04 sdht0

Thank you @siddharthasahu . I suggest adding an option for saving the last n epoch of model.

GabrielLin avatar Apr 08 '19 10:04 GabrielLin

@GabrielLin — do you mean saving the last n epochs, or saving every n epochs? Saving the last n epochs where n > 1 would have the same effect as using the itersave flag. This is also easy to add yourself in the existing training flow.

jacobkahn avatar Apr 08 '19 16:04 jacobkahn

OK. Thank you. I think this suggestion can be an enhancement in the further version.

GabrielLin avatar Apr 10 '19 14:04 GabrielLin