abhayraw1 / dreamer-pytorch

pytorch-implementation of Dreamer (Model-based Image RL Algorithm)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dreamer implementation in PyTorch

MIT License

Dreamer

This repo implements the Dreamer algorithm from Dream to Control: Learning Behaviors By latent Imagination based on the PlaNet-Pytorch. It has been confirmed working on the DeepMind Control Suite/MuJoCo environment. Hyperparameters have been taken from the paper.

Installation

To install all dependencies with Anaconda run using the following commands.

conda env create -f conda_env.yml

source activate dreamer

Training (e.g. DMC walker-walk)

python main.py --algo dreamer --env walker-walk --action-repeat 2 --id name-of-experiement

For best performance with DeepMind Control Suite, try setting environment variable MUJOCO_GL=egl (see instructions and details here).

Use Tensorboard to monitor the training.

tensorboard --logdir results

Results

The performances are compared with the other SoTA algorithms as follows (Note! Tested once using seed 0.)

NOTE! All the steps below are environment steps. (All the results below are trained 1000 episodes. Each espisode length is 1000 steps. Actual number of sampled data are steps/action_repeat. )

Pretrained models can be found in the releases.

Links

About

pytorch-implementation of Dreamer (Model-based Image RL Algorithm)

License:MIT License


Languages

Language:Python 100.0%