Skip to main content

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

Project description

Atari Helpers

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.12.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.12-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atarihelpers-0.0.12.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.12.tar.gz
Algorithm Hash digest
SHA256 a3ba83bf1433a53a182e0ae43ecf0c52f51195271a30ec4ec7dcc0f1c30dfe5c
MD5 bae1b746c5e8375e6f6e3103c75cb175
BLAKE2b-256 ef000db304c0c7dd320eca434e47b9942458969418f17a6d9cc3d17487dbbdb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: atarihelpers-0.0.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 e2606ee5bab8e75ed00422ae2292b259fa704bb77afabbec61a822d0ef3c6785
MD5 3f66094763dd4b4c94844d67b453adde
BLAKE2b-256 3b419fa249e9f2342bcd64340908b5ea17ed0f4b79770f050335938be23adefb

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