How to continue training? #225
Answered
by
lukas-blecher
dungcan2k5
asked this question in
Q&A
-
Hi Lukas, this project is really cool, but now I have a little question that needs your help. I trained the model based on your manual. Now I want to pause the training (due to the time limit on colab), how can I resume my work tomorrow? One more time, thank you very much |
Beta Was this translation helpful? Give feedback.
Answered by
lukas-blecher
Dec 27, 2022
Replies: 1 comment 1 reply
-
Hello, the model should be saved in the colab at the path from google.colab import drive
drive.mount('/content/gdrive') To resume the next day you need to save the weights as Hope that helps |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dungcan2k5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
the model should be saved in the colab at the path
/content/pix2tex/model/checkpoints
.You can download it from there and upload it the next day or save it on gdrive which might be faster if your upload speed is not the best.
E.g.
To resume the next day you need to save the weights as
weights.pth
in the project root.Hope that helps