This repository contains the PyTorch code for the paper "Learning to Weight Imperfect Demonstrations" in ICML 2021. Code for Atari experiments can be found in this repo.
python wgail.py --env Ant-v2 --num-epochs 5000 --traj-size 1000 --stage 2
python 2iwil.py --env Ant-v2 --num-epochs 5000 --traj-size 1000 --stage 2
python gail.py --env Ant-v2 --num-epochs 5000 --traj-size 1000 --stage 2
python trpo_irl.py --env Ant-v2 --num-epochs 5000 --reward-path 'reward_model/ant_reward_stage2.pth' --stage 2
The re-implementation of T-REX/D-REX can be found in SAIL.
We would like to thank the authors of 2IWIL/IC-GAIL. Our code structure is largely based on their source code.