Model saving and testing on external data
hemanthkumar3111 opened this issue · 3 comments
hemanthkumar3111 commented
hi how can I save the model for pix2pix and test the same on my personal data for
hiteshnitetc commented
In def sample_images:
self.discriminator.save("location/dweights_%d.hdf5" %epoch) (for discriminator)
self.generator.save("location/gweights_%d.hdf5" %epoch) (for generator)
you can also save model in JSON, and use save_weights for saving weights.
KamiKazeFei commented
@hiteshnitetc
after I save the weight and model, how to do can use those model and weight to re-train? thx
hiteshnitetc commented
Just use load_model, and then train.
…On Sat, Jul 11, 2020 at 8:29 PM KamiKazeFei ***@***.***> wrote:
@hiteshnitetc <https://github.com/hiteshnitetc>
after I save the weight and model, how to do can use those model and
weight to re-train? thx
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#222 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHJSSSUUKFKSFRDWRIB6T53R3B46VANCNFSM4NPCY2UQ>
.
--
Hitesh Tekchandani
PhD Research Scholar
NIT Raipur
India