The set up is the same as homework1, skip this if you have finished homework1.
- Download the MuJoCo version 2.1 binaries for Linux or OSX.
- Extract the downloaded
mujoco210
directory 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.
conda env create -f environment.yml
conda activate cse542a1
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"
python main.py --task policy_gradient
python main.py --task actor_critic
python main.py --task policy_gradient --test --render
python main.py --task actor_critic --test --render