How can I continue training my network from the previous state?
Show older comments
I recently trained a YOLOv2 model for 10 epochs, but the results weren't as good as I had hoped. To improve the model's performance, I plan to increase the total number of training epochs to 20. However, I don't want to start the training process from the beginning again, as this would mean losing the progress made during the initial 10 epochs.
Instead, I would like to continue the training from the point where it left off after the first 10 epochs. This way, I can resume the process and train the model for an additional 10 epochs, building on the progress already made.
Could anyone guide me on how to continue training from the saved state of the model, rather than starting anew?
Accepted Answer
More Answers (1)
Just call trainnet() again, feeding it your net in its current state, rather than an untrained layer graph.
You may wish to adjust the learning rate to account for the LearnRateDrop period that was in force during the first 10 epochs.
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!