Closed sparisi closed 3 years ago
There are several examples now parallelizing with python multiprocessing (stable-baselines3) and ray: https://github.com/StanfordVL/iGibson/blob/ig-develop/igibson/examples/demo/stable_baselines3_example.py https://github.com/StanfordVL/iGibson/blob/ig-develop/igibson/envs/igibson_rllib_env.py
Closing because I believe this is addressed with the above examples
@mjlbach Hey, is the stable_baselines3_example.py supposed to work after 1M steps ? Iam currently trying to create some unit tests to verify that every libary works. Such an example would be extremely helpful :) Thanks in advance
Are you having an issue with it past 1 million steps?
No, I haven't finished training yet. I wanted to know if that is an serious example using SB3. Since training 1M steps needs some time on my resources.
stable_baselines3_example.py
should converge, stable_baselines3_behavior_example.py
will not
alright, thank you :) I am gonna try it out tonight and let you know if it works as expected :) Edit: do you have any graphs for the example ? not sure if this is correct.
Based on 50 evaluation episodes, the agent achieves ~ 50 % success rate. Is this the expected rate more or less ? Still thanks for your help !
My code does something like:
Within
act()
I try to create a new environment, but it fails as reported by https://github.com/StanfordVL/iGibson/issues/71#issue-839396005 Unlike what the user reported, putting the process to sleep to few seconds did not fix the issue.The only way to run my code is to create new environments outside
act()
and pass them as arguments:However, the code is extremely slow.
cuda out of memory
error.I tried using
ParallelNavEnv
, but it creates envs in other processes which is not what I want.What is the proper way to parallelize envs in this case? Thanks!