-
Notifications
You must be signed in to change notification settings - Fork 147
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
Training threads don't start on Windows #3
Comments
I changed update_every value from 25 to 30 to resolve this warning: Weird thing is that sometimes when I run the code, I get the following exception:
|
Update: When I change |
It could be normal that TensorBoard doesn't show anything for a while. The frequency for writing logs is define inside What environment are you using and how long are episodes typically? Can you post your full config? |
I worked on that and it seems there's some other problem with the code:
If I change env_processes to False, it works! Do you know what's the problem? |
Please wrap code blocks in 3 back ticks. Your configuration must be pickable and it looks like yours is not. Try to define it without using lambdas. As alternatives, define external functions, nested functions, or use |
OK I got an update: In train.py, I changed this line:
The CPU overload for my python is 0% so it doesn't to be doing anything. Any ideas? This is my configs:
|
Where is the |
I thought that we give |
No, I meant you should undo the change you made to the batch env line. You define environments in your config by setting |
Oh OK I found out what I did wrong with removing the lambda keyword. |
I've seen it working on many people's computers :) Please check if YAML is installed: python3 -c "import ruamel.yaml; print('success')" And check if the Pendulum environment works: python3 -c "import gym; e=gym.make('Pendulum-v0'); e.reset(); e.render(); input('success')" If both works please start from a fresh clone of this repository and report your error message again. |
Thanks for your reply. I tried both tests with success. I cloned the repository again and the code doesn't work. It's not showing me that lambda error but it stays still when it reaches this line of code in wrappers.py: When I use debugging, stepping into start function eventually takes guides me to this line in context.py (The code hangs when it reaches this line): BTW, I'm using Windows 10. Maybe it has something to do with OS? |
Yea, that might be the problem. Processing is quite different between Windows and Linux/Mac and we mainly tested on the latter. I'm afraid I can't be of much help since I don't use Windows. Do you have an idea how to debug this? I'd be happy to test and merge a fix if you come up with one. |
OK thanks for your reply. I have no idea right now. But I will work on it because it's kind of important for me to make it work on Windows. I'll let you if it's solved. |
@donamin Where you able to narrow down this issue? |
@danijar No I couldn't solve it so I had to switch to linux. Sorry. |
Thanks for getting back. I'll keep this issue open for now. We might support Windows in the future since as far as I can see the threading is the only platform-specific bit. But unfortunately, there are no concrete plans for this at the moment. |
It seems you cannot use the _worker class method for multiprocessing.Process on Windows.
|
@erwincoumans Yes, this seems trivial since |
Hi
I started the learning a few minutes ago and this is what I got in command prompt:
It's been like this for about 10 minutes and tensorboard doesn't show anything.
In the log directory, there is only one file called 'config.yaml'.
Is it ok? It would be nice to see if the agent is progressing or it is hung or something.
Thanks
Amin
The text was updated successfully, but these errors were encountered: