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/
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
#A export PYTHONPATH=path_to_rlpyt:$PYTHONPATH #B pip install -e .
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;
rlpyt(Deep Reinforcement Learning in PyTorch)
原文:https://www.cnblogs.com/lucifer1997/p/13541041.html