[Paper]
Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, Sergey Levine
It is a good a practise to create a new virtual environment and then install the dependencies to prevent conflicts with the exsisting ones.
[Installing and creating virtual envs]
- Python 3.6 or higher
- NumPy
- Pytorch 1.0+
- Gym 0.17.2+
- Matplotlib 3.1.1+
- Ipython 7.8.0+
- Pillow 6.2.0+
Or just run the requirements.txt aspip install -r requirements.py
requiremensts.txt contains packages that may not be used in this project
- Install Pytorch
- Install torchvision from the source
git clone https://github.com/pytorch/vision
cd vision
python setup.py install
- Clone this repo (Fork and clone if necessary)
git clone https://github.com/rtharungowda/Soft-Actor-Critic-Pytorch.git
cd Soft-Actor-Critic-Pytorch/
To train the models for 40,000 iterations
cd pendulumn
python train.py
Iterations midway
All iterations
Load the pre-trained model from checkpoint.pth
Create a gif of the test run
cd pendulumn
python visualization.py