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
I just want to say your trained model has no effect #5
Comments
what os you running this on? I just ran it works fine for me
|
I am running macOS, why am I just got -21 all the time. Which command are you using? |
I trained whole night but when I cut it, nothing saved, can not find any model saved..... |
Well first I would update repo cause I tinkered a lot with it past couple days but I know it's working fine now.. are you seeing the models in the trained_models folder? |
Oh this your trained model? Are you seeing a saved model in the folder or and models? Should be a Pong-v0.dat file |
Yeah, I seen it, but seems this model is you have trained already in your repo, cause besides Pong there are other moels. Anyway, how should I exactly call my model and the render env at mean time to see AI play? |
Well I have set up up so models save in trained models folder and load there. If you want to watch gym_eval you have to do Python gym_eval.py --env Pong-v0 --num-episodes 100 --render True |
That looks like you having dependencies issues with gym Can u go in terminal: start python Import gym env=gym.make('Pong-v0') Let me know what you see from that.. |
It has problem in save model, I update main.py default saved dir to trained_models_me, when I cut it, there has no my dir created. |
You have to create directory first if not using folder trained_models. I did not set up to create saved folder directories |
Yeah try that same code in python3 and see if pic of Atari screen comes up |
Thanks dgriff, you are a master in reinforcement learning. |
It's working now?! You welcome. Happy to help😄 |
Yeah, really thanks your help Pal. |
Awesome! Have fun 👍 |
Hi, dgriff, sorry for the bother but I have one last question, in train.py I can't find codes to save model, I am new to pytorch, is there a way to store weights into specific dir and load it when run again? |
When running training command you can do:
And to load from specific folder:
Can also specify both in command |
Loading code in training is in main.py
Saving model code is in test.py
And load model code in gym_eval.py
|
I try to eval your trained model, however the result has no effect:
And the record is white-and-black videos, can not just show on screen.
The text was updated successfully, but these errors were encountered: