Skip to content

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

License

Notifications You must be signed in to change notification settings

yusukeurakami/dreamer-pytorch

Repository files navigation

Dreamer implementation in PyTorch

MIT License

Dreamer-torch1.8.2

Updated the code to catch up with the latest pytorch version.

Previous version for pytorch 1.4 is left at dreamer branch.

Not conpatible with open-source Mujoco yet. Please download and use mujoco-200 and free license key from here

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)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages