MIT License

项目介绍

TianhongDai/hindsight-experience-replay 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 453 个 Star、78 次 Fork。

仓库全名
TianhongDai/hindsight-experience-replay
开源许可证
MIT License
Star 数
453
Fork 数
78
未关闭 Issue
15

README 摘要

Hindsight Experience Replay (HER) This is a pytorch implementation of Hindsight Experience Replay. Acknowledgement: Openai Baselines Requirements python=3.5.2 openai-gym=0.12.5 (mujoco200 is supported, but you need to use gym >= 0.12.5, it has a bug in the previous version.) mujoco-py=1.50.1.56 (Please use this version, if you use mujoco200, you may failed in the FetchSlide-v1) pytorch=1.0.0 (If you use…

完整内容见 GitHub 原始 README 或本页 。

常见问题

hindsight-experience-replay 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 453 个 Star。

hindsight-experience-replay 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 hindsight-experience-replay 的源码?

可以直接克隆仓库:git clone https://github.com/TianhongDai/hindsight-experience-replay.git,默认分支为 master;安装与运行步骤见仓库 README。

hindsight-experience-replay 最近还在维护吗?

仓库最近一次更新为 2021年12月11日,当前有 15 个未关闭 Issue;Star 数为 453,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

This is the pytorch implementation of Hindsight Experience Replay (HER) - Experiment on all fetch robotic environments.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
613
价值分
294
活跃状态
活跃

语言占比

Python

贡献者

README

Hindsight Experience Replay (HER)

This is a pytorch implementation of Hindsight Experience Replay.

Acknowledgement:

Requirements

  • python=3.5.2
  • openai-gym=0.12.5 (mujoco200 is supported, but you need to use gym >= 0.12.5, it has a bug in the previous version.)
  • mujoco-py=1.50.1.56 (Please use this version, if you use mujoco200, you may failed in the FetchSlide-v1)
  • pytorch=1.0.0 (If you use pytorch-0.4.1, you may have data type errors. I will fix it later.)
  • mpi4py

TODO List

  • support GPU acceleration - although I have added GPU support, but I still not recommend if you don’t have a powerful machine.
  • add multi-env per MPI.
  • add the plot and demo of the FetchSlide-v1.

Instruction to run the code

If you want to use GPU, just add the flag --cuda (Not Recommended, Better Use CPU).

  1. train the FetchReach-v1:
mpirun -np 1 python -u train.py --env-name='FetchReach-v1' --n-cycles=10 2>&1 | tee reach.log
  1. train the FetchPush-v1:
mpirun -np 8 python -u train.py --env-name='FetchPush-v1' 2>&1 | tee push.log
  1. train the FetchPickAndPlace-v1:
mpirun -np 16 python -u train.py --env-name='FetchPickAndPlace-v1' 2>&1 | tee pick.log
  1. train the FetchSlide-v1:
mpirun -np 8 python -u train.py --env-name='FetchSlide-v1' --n-epochs=200 2>&1 | tee slide.log

Play Demo

python demo.py --env-name=<environment name>

Download the Pre-trained Model

Please download them from the Google Driver, then put the saved_models under the current folder.

Results

Training Performance

It was plotted by using 5 different seeds, the solid line is the median value. Training_Curve

Demo:

Tips: when you watch the demo, you can press TAB to switch the camera in the mujoco.

FetchPush-v1 FetchPickAndPlace-v1 FetchSlide-v1

评论

暂无评论