Categories
Misc

How to load a model after it’s been saved?

How to load a model after it's been saved?

Tried using this for reference but it wasn’t working. Saving the model seems to work perfectly fine. Screenshots go in this order: 1. Code that trains and saves the model. 2. what the saved model looks like in the file directory. 3. Code that should load the model back and then test it. 4. Error message received when load/test code is run. How do I properly load my model back so it can be evaluated? Or is it that I’m improperly saving it?

1. Train and Save Code

2. File Directory (Saving every 100 epochs)

3. Load and Test Code

4. Console Error from 3.

submitted by /u/Kapooshi
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *