chainer / chainerrl

ChainerRL is a deep reinforcement learning library built on top of Chainer.
MIT License
1.18k stars 224 forks source link

Add an example script for RoboschoolAtlasForwardWalk-v1 #577

Closed muupan closed 5 years ago

muupan commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

/test

pfn-ci-bot commented 5 years ago

Successfully created a job for commit 8fe46ce: