rlpyt(Deep Reinforcement Learning in PyTorch)
时间:2020-08-21 16:09:23
收藏:0
阅读:72
Github:https://github.com/astooke/rlpyt
Introduction:https://baijiahao.baidu.com/s?id=1646437256939374418&wfr=spider&for=pc
Documentation:https://rlpyt.readthedocs.io/en/latest/
Installation
-
Clone this repository to the local machine.
-
Install the anaconda environment appropriate for the machine.
conda env create -f linux_[cpu|cuda9|cuda10].yml source activate rlpyt
- Either A) Edit the PYTHONPATH to include the rlpyt directory, or B) Install as editable python package
#A export PYTHONPATH=path_to_rlpyt:$PYTHONPATH #B pip install -e .
- Install any packages / files pertaining to desired environments (e.g. gym, mujoco). Atari is included.
pip install gym
Hint: for easy access, add the following to your ~/.bashrc
(might substitute conda
for source
).
alias rlpyt="source activate rlpyt; cd path_to_rlpyt"
rlpyt/example/atari_dqn_async_cpu.py:设置n_socket=1;
rlpyt/example/atari_dqn_async_gpu.py:设置n_socket=1;
rlpyt/example/atari_dqn_async_serial.py:设置n_socket=1;
原文:https://www.cnblogs.com/lucifer1997/p/13541041.html
评论(0)