Skip to content
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

Load model and resume training #2

Open
Ianmcmill opened this issue Apr 17, 2019 · 0 comments
Open

Load model and resume training #2

Ianmcmill opened this issue Apr 17, 2019 · 0 comments

Comments

@Ianmcmill
Copy link

Ianmcmill commented Apr 17, 2019

Hi!

I'm trying to figure out how to resume training. I have checked your other repos but neither does that.
I tried

if __name__ == "__main__":
    model = WGAN(lr = 0.0003, silent = False)
    model.load(4)
    while(True):
        model.train()

(4) being the 4th model saved in /models/gen_4.h5
but this just quits to command prompt. I guess it's not as simple as that. Does the train function need some code to get resume functionality? Or does this need checkpoints?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant