Retour au classement

pathak22/noreward-rl

Python

[ICML 2017] TensorFlow code for Curiosity-driven Exploration for Deep Reinforcement Learning

deep-reinforcement-learningcuriosityexplorationdeep-learningrldeep-neural-networksmariodoomself-supervisedtensorflowopenai-gym
Croissance des étoiles
Étoiles
1.5k
Forks
304
Croissance hebdomadaire
Issues
22
5001k
mai 2017mai 2020juin 2023juil. 2026
ArtefactsPyPIpip install noreward-rl
README

Curiosity-driven Exploration by Self-supervised Prediction

In ICML 2017 [Project Website] [Demo Video]

Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, Trevor Darrell
University of California, Berkeley

This is a tensorflow based implementation for our ICML 2017 paper on curiosity-driven exploration for reinforcement learning. Idea is to train agent with intrinsic curiosity-based motivation (ICM) when external rewards from environment are sparse. Surprisingly, you can use ICM even when there are no rewards available from the environment, in which case, agent learns to explore only out of curiosity: 'RL without rewards'. If you find this work useful in your research, please cite:

@inproceedings{pathakICMl17curiosity,
    Author = {Pathak, Deepak and Agrawal, Pulkit and
              Efros, Alexei A. and Darrell, Trevor},
    Title = {Curiosity-driven Exploration by Self-supervised Prediction},
    Booktitle = {International Conference on Machine Learning ({ICML})},
    Year = {2017}
}

1) Installation and Usage

  1. This code is based on TensorFlow. To install, run these commands:
# you might not need many of these, e.g., fceux is only for mario
sudo apt-get install -y python-numpy python-dev cmake zlib1g-dev libjpeg-dev xvfb \
libav-tools xorg-dev python-opengl libboost-all-dev libsdl2-dev swig python3-dev \
python3-venv make golang libjpeg-turbo8-dev gcc wget unzip git fceux virtualenv \
tmux

# install the code
git clone -b master --single-branch https://github.com/pathak22/noreward-rl.git
cd noreward-rl/
virtualenv curiosity
source $PWD/curiosity/bin/activate
pip install numpy
pip install -r src/requirements.txt
python curiosity/src/go-vncdriver/build.py

# download models
bash models/download_models.sh

# setup customized doom environment
cd doomFiles/
# then follow commands in doomFiles/README.md
  1. Running demo
cd noreward-rl/src/
python demo.py --ckpt ../models/doom/doom_ICM
python demo.py --env-id SuperMarioBros-1-1-v0 --ckpt ../models/mario/mario_ICM
  1. Training code
cd noreward-rl/src/
# For Doom: doom or doomSparse or doomVerySparse
python train.py --default --env-id doom

# For Mario, change src/constants.py as follows:
# PREDICTION_BETA = 0.2
# ENTROPY_BETA = 0.0005
python train.py --default --env-id mario --noReward

xvfb-run -s "-screen 0 1400x900x24" bash  # only for remote desktops
# useful xvfb link: http://stackoverflow.com/a/30336424
python inference.py --default --env-id doom --record

2) Other helpful pointers

3) Acknowledgement

Vanilla A3C code is based on the open source implementation of universe-starter-agent.

Dépôts similaires
eriklindernoren/ML-From-Scratch

Machine Learning From Scratch. Bare bones NumPy implementations of machine learning models and algorithms with a focus on accessibility. Aims to cover everything from linear regression to deep learning.

PythonPyPIMIT Licensemachine-learningdeep-learning
32.3k5.4k
Unity-Technologies/ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.

C#Otherreinforcement-learningunity3d
unity.com/products/machine-learning-agents
19.6k4.5k
microsoft/AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research

C++Otherdronesai
microsoft.github.io/AirSim/
18.3k4.9k
AI4Finance-Foundation/FinRL

FinRL®: Financial Reinforcement Learning. 🔥

Jupyter NotebookMIT Licensedeep-reinforcement-learningdrl-trading-agents
ai4finance.org
15.8k3.4k
datawhalechina/easy-rl

强化学习中文教程(蘑菇书🍄),在线阅读地址:https://datawhalechina.github.io/easy-rl/

Jupyter NotebookOtherdeep-reinforcement-learningreinforcement-learning
14.5k2.3k
carla-simulator/carla

Open-source simulator for autonomous driving research.

C++MIT Licensesimulatorautonomous-vehicles
carla.org
14.2k4.6k
kmario23/deep-learning-drizzle

Drench yourself in Deep Learning, Reinforcement Learning, Machine Learning, Computer Vision, and NLP by learning from these exciting lectures!!

HTMLmachine-learningdeep-learning
deep-learning-drizzle.github.io
12.9k3k
lexfridman/mit-deep-learning

Tutorials, assignments, and competitions for MIT Deep Learning related courses.

Jupyter NotebookMIT Licensedeep-learningmit
deeplearning.mit.edu
10.4k2.2k
vwxyzjn/cleanrl

High-quality single file implementation of Deep Reinforcement Learning algorithms with research-friendly features (PPO, DQN, C51, DDPG, TD3, SAC, PPG)

PythonPyPIOtherwandbreinforcement-learning
docs.cleanrl.dev
10.1k1.1k
evilsocket/pwnagotchi

(⌐■_■) - Deep Reinforcement Learning instrumenting bettercap for WiFi pwning.

PythonPyPIOtheraideep-reinforcement-learning
pwnagotchi.ai
9.1k1.2k
MITDeepLearning/introtodeeplearning

Lab Materials for MIT 6.S191: Introduction to Deep Learning

Jupyter NotebookMIT Licensemitdeep-learning
8.7k4.5k
google/trax

Trax — Deep Learning with Clear Code and Speed

PythonPyPIApache License 2.0jaxnumpy
8.3k820