procgen  by openai

Procedurally-generated Gym environments for RL generalization research

Created 5 years ago
1,098 stars

Top 34.7% on SourcePulse

GitHubView on GitHub
Project Summary

The Procgen Benchmark provides 16 procedurally-generated, game-like Gym environments designed to measure the generalization capabilities of reinforcement learning agents. It offers a faster and more randomized alternative to Gym Retro, enabling rapid skill acquisition benchmarking.

How It Works

The environments are built using C++ for high performance, achieving thousands of steps per second on a single CPU core. They generate diverse levels on-the-fly, preventing agents from memorizing fixed sequences. Observations are 64x64 RGB pixel arrays, and actions are discrete button combinations.

Quick Start & Requirements

  • Install via pip: pip install procgen
  • Requires Python 3.7-3.10 (64-bit) and CPUs with AVX.
  • Interactive testing: python -m procgen.interactive --env-name coinrun
  • Docker images are available for basic setups.

Highlighted Details

  • 16 distinct environments with unique gameplay mechanics.
  • Customizable via source build for creating new environments.
  • Supports Gym and Gym3 (vectorized) interfaces.
  • Environment options include difficulty modes ("easy", "hard", "extreme", "memory", "exploration") and asset customization.

Maintenance & Community

The project is in maintenance mode, expecting bug fixes and minor updates. Contribution guidelines are available.

Licensing & Compatibility

The project is licensed under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

Some environments have known issues where agents can spawn in unwinnable states or die immediately, which are intentionally left unfixed for reproducibility. The library is not fork-safe unless num_threads=0 is set, and Qt is not guaranteed to be fork-safe. GPU acceleration is not utilized.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
3 stars in the last 30 days

Explore Similar Projects

Starred by Deepak Pathak Deepak Pathak(Cofounder of Skild AI; Professor at CMU), Anastasis Germanidis Anastasis Germanidis(Cofounder of Runway), and
1 more.

deer by VinF

0%
489
Deep reinforcement learning framework
Created 9 years ago
Updated 2 months ago
Starred by Aravind Srinivas Aravind Srinivas(Cofounder of Perplexity), Evan Hubinger Evan Hubinger(Head of Alignment Stress-Testing at Anthropic), and
3 more.

retro by openai

0.1%
4k
RL environment for classic video games
Created 7 years ago
Updated 1 year ago
Starred by Alex Yu Alex Yu(Research Scientist at OpenAI; Former Cofounder of Luma AI), John Yang John Yang(Coauthor of SWE-bench, SWE-agent), and
6 more.

cleanrl by vwxyzjn

0.5%
8k
RL algorithms implementation with research-friendly features
Created 6 years ago
Updated 2 months ago
Feedback? Help us improve.