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

Add an example script for RoboschoolAtlasForwardWalk-v1 #577

Merged
merged 6 commits into from
Nov 19, 2019

Conversation

muupan
Copy link
Member

@muupan muupan commented Nov 8, 2019

This PR adds an example script to train SAC for RoboschoolAtlasForwardWalk-v1. I cannot find any good published benchmark for this env, but the script can achieve maximum returns of 6500-6600 after 10M steps, which is better than https://github.com/openai/roboschool/blob/master/agent_zoo/RoboschoolAtlasForwardWalk_v1_2017jul.py achieving 6100-6200. I'm not sure how they trained the model.

https://github.com/muupan/chainerrl/tree/atlas/examples/atlas

Since the animation looks good, it is put on the top README as well

https://github.com/muupan/chainerrl/tree/atlas

Resolves #102

@muupan
Copy link
Member Author

muupan commented Nov 8, 2019

Roboschool seems not installed correctly in Travis CI. I'll fix it.

Traceback (most recent call last):
  File "examples/atlas/train_soft_actor_critic_atlas.py", line 249, in <module>
    main()
  File "examples/atlas/train_soft_actor_critic_atlas.py", line 128, in main
    sample_env = make_env(args, process_seeds[0], test=False)
  File "examples/atlas/train_soft_actor_critic_atlas.py", line 35, in make_env
    import roboschool  # NOQA
  File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/roboschool/__init__.py", line 112, in <module>
    from roboschool.gym_pendulums import RoboschoolInvertedPendulum
  File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/roboschool/gym_pendulums.py", line 1, in <module>
    from roboschool.scene_abstract import SingleRobotEmptyScene
  File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/roboschool/scene_abstract.py", line 12, in <module>
    from roboschool  import cpp_household   as cpp_household
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/roboschool/.libs/libQt5Core.so.5)
The command "./test_examples.sh -1" exited with 1.

@muupan muupan changed the title Add an example script for RoboschoolAtlasForwardWalk-v1 [WIP] Add an example script for RoboschoolAtlasForwardWalk-v1 Nov 8, 2019
since it is cumbersome to install
because with the latest gym 1.0.46 seems to cause an error
@muupan
Copy link
Member Author

muupan commented Nov 9, 2019

Since I had difficulty in installing roboschool in TravisCI, I modified examples_tests/atlas/test_soft_actor_critic.sh to use Pendulum-v0 instead.

@muupan
Copy link
Member Author

muupan commented Nov 9, 2019

/test

@pfn-ci-bot
Copy link
Collaborator

Successfully created a job for commit 8fe46ce:

@muupan muupan changed the title [WIP] Add an example script for RoboschoolAtlasForwardWalk-v1 Add an example script for RoboschoolAtlasForwardWalk-v1 Nov 9, 2019
Copy link
Member

@ummavi ummavi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ummavi ummavi merged commit 23f3032 into chainer:master Nov 19, 2019
@muupan muupan added this to the v0.8 milestone Feb 6, 2020
@muupan muupan added the example label Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add roboschool to environment in chainerrl
3 participants