Colab notebook Course Website including writeup
- Download the MuJoCo version 2.1 binaries for Linux or OSX.
- Extract the downloaded
mujoco210directory into~/.mujoco/mujoco210. - Add resources/mjkey.txt in the repo into into
~/.mujoco/mujoco210.
To set up the project environment, Use the environment.yml file. It contains the necessary dependencies and installation instructions. It is the same as last assignment
conda env create -f environment.yml
conda activate cse579a1
sudo apt-get install libglew-dev
sudo apt-get install patchelf
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.mujoco/mujoco210/bin
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so
python -c "import mujoco_py"
Follow the instructions in the write up to complete the TODOs in the following files:
policy_gradient.pyactor_critic.pysac.pyPsudeo code for each of these steps is provided in the write up at the end. Try to not use the pseudocode but it is there as a resource if you need it.
python main.py --task pg --env pendulum
python main.py --task actor_critic --env pendulum
python main.py --task sac --env pendulum
python main.py --task pg --env pendulum --test
python main.py --task actor_critic --test --env pendulum
python main.py --task sac --test --env pendulum