wav2letter
wav2letter copied to clipboard
How to save latest n checkpoints?
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.
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
Thank you @siddharthasahu . I suggest adding an option for saving the last n epoch of model.
@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.
OK. Thank you. I think this suggestion can be an enhancement in the further version.