CoIT
This is a PyTorch implementation of "On the Data-Efficiency with Contrastive Image Transformation in Reinforcement Learning" for DeepMind Control Suite. The code has not been tested for any other setting.
Install MuJoCo if it is not already the case:
- Download MuJoCo binaries here.
- Unzip the downloaded archive into
~/.mujoco/mujoco210
. - Use the env variables
MUJOCO_PY_MUJOCO_PATH
to specify the MuJoCo directory path. - Append the MuJoCo subdirectory bin path into the env variable
LD_LIBRARY_PATH
.
Install the following libraries:
sudo apt update
sudo apt install libosmesa6-dev libgl1-mesa-glx libglfw3
The code was run on a GPU with CUDA 11.2. To install all the required dependencies:
conda env create -f conda_env.yml
conda activate coit
python train.py task=cartpole_swingup