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

No saved model #6

Open
ghost opened this issue Mar 1, 2019 · 1 comment
Open

No saved model #6

ghost opened this issue Mar 1, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 1, 2019

Hi, I've run the script in training mode, and even after the training was over, if I then run it in test or render mode I was given the "no saved model" message. How do I make it save the model? And how do I render the (saved and learned) policy only once the training is over? Thanks in advance for your time!

@mimoralea
Copy link

Models are saved every 2mm frames by default (https://github.com/greydanus/baby-a3c/blob/master/baby-a3c.py#L127-L129). Make sure models are being saved, when training. The saving process will create a folder with the name of the environment and a log.txt at the top (just like in the repo breakout-v4, pong-v4, spaceinvaders-v4, etc. An additional thing to verify is that you are running the script from the top directory (e.g.: python baby-a3c.py --env Pong-v0 --test). If you run it from other paths it might not work.

Give it a try: python baby-a3c.py --env Pong-v0 --test from the project's root should work.

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