Skip to main content

A curated collection of helpers needed for Atari DRL environment management.

Project description

atarihelpers 🎮

A tiny toolkit for tidying up Atari observations before they hit your RL agent. Keep installs light, configs simple, and pre-processing consistent.

  • 🚀 Quick preprocessing for Atari frames (grayscale + resize)
  • 🧰 Single helper focused on DRL needs; no extra baggage
  • ✅ Tested on Python 3.9+ with NumPy + OpenCV

Installation

pip install atarihelpers

Usage

import gymnasium as gym
from atarihelpers import process_state

env = gym.make("ALE/Pong-v5")
state, _ = env.reset()

processed = process_state(
    state,
    image_size=84,   # target square size
    grayscale=True,  # convert to single channel
    resize=True,     # skip if you want original resolution
)

📝 Input should be a NumPy array shaped (H, W, C) in BGR order (OpenCV style). The helper returns the processed NumPy array ready for stacking or feeding to your model.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

atarihelpers-0.0.11.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atarihelpers-0.0.11-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file atarihelpers-0.0.11.tar.gz.

File metadata

  • Download URL: atarihelpers-0.0.11.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for atarihelpers-0.0.11.tar.gz
Algorithm Hash digest
SHA256 92703149e94ceb2c04cce02100399f3261b540fae959447add768f449978a7fc
MD5 94ac3c95585b2ec2d77142d17f4e5a49
BLAKE2b-256 37b5d5aa952a67e13c67f01248df0c1b051a1c132d553bf8081c86b7a12b8993

See more details on using hashes here.

File details

Details for the file atarihelpers-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: atarihelpers-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for atarihelpers-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3a8d493beffdb7dbf903c19f816cde871132fd2571c4ddac2a1a347cc28ef3fa
MD5 020fbe88e4952feca09f9ca23fb8297e
BLAKE2b-256 557d0456ba1c6e71d37bf7c3d934ed0fcc95e0888da978293c1a25627e28fa97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page