All Projects → shakenes → vizdoomgym

shakenes / vizdoomgym

Licence: MIT license
OpenAI Gym wrapper for ViZDoom enviroments

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to vizdoomgym

gym-hybrid
Collection of OpenAI parametrized action-space environments.
Stars: ✭ 26 (-55.93%)
Mutual labels:  openai-gym, openai-gym-environments
ga-openai-gym
Usage of genetic algorithms to train a neural network in multiple OpenAI gym environments.
Stars: ✭ 24 (-59.32%)
Mutual labels:  openai-gym
bark-ml
Gym environments and agents for autonomous driving.
Stars: ✭ 68 (+15.25%)
Mutual labels:  openai-gym
Pytorch-RL-CPP
A Repository with C++ implementations of Reinforcement Learning Algorithms (Pytorch)
Stars: ✭ 73 (+23.73%)
Mutual labels:  openai-gym
gym-tetris
An OpenAI Gym interface to Tetris on the NES.
Stars: ✭ 33 (-44.07%)
Mutual labels:  openai-gym
CartPole
Run OpenAI Gym on a Server
Stars: ✭ 16 (-72.88%)
Mutual labels:  openai-gym
gym-cartpole-swingup
A simple, continuous-control environment for OpenAI Gym
Stars: ✭ 20 (-66.1%)
Mutual labels:  openai-gym
Deep-Reinforcement-Learning-CS285-Pytorch
Solutions of assignments of Deep Reinforcement Learning course presented by the University of California, Berkeley (CS285) in Pytorch framework
Stars: ✭ 104 (+76.27%)
Mutual labels:  openai-gym
coord-sim
Lightweight flow-level simulator for inter-node network and service coordination (e.g., in cloud/edge computing or NFV).
Stars: ✭ 33 (-44.07%)
Mutual labels:  openai-gym
dm2gym
Convert DeepMind Control Suite to OpenAI gym environments.
Stars: ✭ 76 (+28.81%)
Mutual labels:  openai-gym
sc2gym
PySC2 OpenAI Gym Environments
Stars: ✭ 50 (-15.25%)
Mutual labels:  openai-gym
modelicagym
Modelica models integration with Open AI Gym
Stars: ✭ 53 (-10.17%)
Mutual labels:  openai-gym
neat-openai-gym
NEAT for Reinforcement Learning on the OpenAI Gym
Stars: ✭ 19 (-67.8%)
Mutual labels:  openai-gym
Deep-Reinforcement-Learning-for-Automated-Stock-Trading-Ensemble-Strategy-ICAIF-2020
Live Trading. Please star.
Stars: ✭ 1,251 (+2020.34%)
Mutual labels:  openai-gym
drl grasping
Deep Reinforcement Learning for Robotic Grasping from Octrees
Stars: ✭ 160 (+171.19%)
Mutual labels:  openai-gym
pong-from-pixels
Training a Neural Network to play Pong from pixels
Stars: ✭ 25 (-57.63%)
Mutual labels:  openai-gym
pytorch-rl
Pytorch Implementation of RL algorithms
Stars: ✭ 15 (-74.58%)
Mutual labels:  openai-gym
FinRL Podracer
Cloud-native Financial Reinforcement Learning
Stars: ✭ 179 (+203.39%)
Mutual labels:  openai-gym
distributed rl
Pytorch implementation of distributed deep reinforcement learning
Stars: ✭ 66 (+11.86%)
Mutual labels:  openai-gym
mdp
Make it easy to specify simple MDPs that are compatible with the OpenAI Gym.
Stars: ✭ 30 (-49.15%)
Mutual labels:  openai-gym

ViZDoomGym

This is a wrapper to use ViZDoom, a "Doom based AI Research Platform for Reinforcement Learning from Raw Visual Information" together with OpenAI Gym.

There is a branch with an alternative reward system for the Health Gathering scenario (each collected health pack yields +1 reward)

Installation

sudo apt-get install cmake libboost-all-dev libgtk2.0-dev libsdl2-dev python-numpy
git clone https://github.com/shakenes/vizdoomgym.git
cd vizdoomgym
pip install -e .

Usage

Use one of the environments (see list below for all available envs):

import gym
import vizdoomgym
env = gym.make('VizdoomBasic-v0', **kwargs)

# use like a normal Gym environment
state = env.reset()
state, reward, done, info = env.step(env.action_space.sample())
env.render()
env.close()

Possible observations

It is possible to get the depth buffer, the labels buffer, the player's position and viewing angle and the player's health as additional observations. If more than one observation is provided, the observations are returned as a list of numpy array (or floats, respectively).

env = gym.make('VizdoomBasic-v0, depth=True, labels=True, position=True, health=True)

List of available environments

VizdoomBasic-v0
VizdoomCorridor-v0
VizdoomDefendCenter-v0
VizdoomDefendLine-v0
VizdoomHealthGathering-v0
VizdoomMyWayHome-v0
VizdoomPredictPosition-v0
VizdoomTakeCover-v0
VizdoomDeathmatch-v0
VizdoomHealthGatheringSupreme-v0

Detailed information about the environments

Future plans

  • Support for more GameVariables such as health through kwargs
  • Provide more options for the observations (player position, health...)
  • Use a dictionary for all the observations

Ideas for new features and of course PRs are always welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].