image-super-resolution icon indicating copy to clipboard operation
image-super-resolution copied to clipboard

How do I store and then load a model after training?

Open bluelight773 opened this issue 4 years ago • 1 comments

These are questions: After I've run training with something like the following per the code on the readme.md:

trainer.train(
    epochs=1,
    steps_per_epoch=500,
    batch_size=16,
    monitored_metrics={'val_PSNR_Y': 'max'}
)

How do I store the model? And how do I afterwards load it and use it for prediction? Also, do you have any guidelines for how long training should work, eg, if p3.2xlarge instance is used or some other recommended AWS instance?

bluelight773 avatar Nov 01 '20 14:11 bluelight773

I think I use a p2.xlarge for training (about a day of training I believe). The model is automatically saved in the weights directory.

cfrancesco avatar Nov 12 '20 14:11 cfrancesco