-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving, load and testing for cyclegan_keras #6
Comments
You use the methods mentioned here https://keras.io/getting-started/faq/#how-can-i-save-a-keras-model |
Thank you for the help. I don't seem to be getting good generation loss for video swapping on cyclegan_keras. Thanks! |
The keras version uses a unet as generator while the lasagne one uses resnet. |
I was also trying to save the model, but I don't seem to find a model object in there to do model.save(). |
The generating models are defined in these lines. netGB = UNET_G(imageSize, nc_in, nc_out, ngf)
netGA = UNET_G(imageSize, nc_out, nc_in, ngf) You can save them after they are trained. |
Just add this snippet at the end of the code:
And you can load the model and than generate fake images with the trained model with this code I've made. |
How do I save the model of cyclegan_keras?
Also how do i test the trained model?
Thanks!
The text was updated successfully, but these errors were encountered: