Skip to main content

Visual Reinforcement Learning tools

Project description

VisionRL

A Python package for visual Reinforcement Learning environments and tools.

VisionRL

A Python package for visual Reinforcement Learning environments and tools.

Design Philosophy

This library is designed as a Gymnasium-compatible extension, focused on computer vision, visualization, UI, and explainability for reinforcement learning. The design follows a layered and modular approach where each concern is clearly separated:

  • Gymnasium handles agent contracts.
  • VisionRL handles human understanding.
  • Core logic is minimal and stable.
  • Features are added via wrappers, not rewrites.
  • UI, CV, and explainability are optional layers.

Project Structure

🔹 vision_rl/ (Root Package)

The main Python package. Everything inside is part of the public or internal API.

🔹 vision_rl/core/ – Core Abstractions

Defines the foundational building blocks.

  • Extends Gymnasium’s Env.
  • Adds support for visual observations, UI hooks, and debug callbacks.
  • Key Files: visual_env.py (Base class), mixins.py (Reusable components).

🔹 vision_rl/wrappers/ – Environment Enhancements

The core extension mechanism. Most new features live here.

  • Modifies Gym environments without changing their code.
  • Handles frame stacking, visual conversions, heatmaps, and logging.

🔹 vision_rl/envs/ – Ready-to-Use Environments

Prebuilt environments for demonstration and best practices.

  • Examples: VisualFrozenLake, VisualCartPole.

🔹 vision_rl/ui/ – Human-Facing Interfaces

Tools for visualization and interaction. Optional for training, critical for demos.

  • Renders steps, plots metrics, and handles dashboards.

🔹 vision_rl/monitors/ – Training Analysis Tools

Tools to analyze agent behavior over time.

  • Track rewards, action distributions, and learning progress.

🔹 vision_rl/utils/ – Shared Utilities

Helper functions for CV, rendering, and image processing. No environment logic lives here.

🔹 vision_rl/register.py – Gym Integration

Connects environments to Gymnasium’s registry (e.g., gym.make("VisualFrozenLake-v0")).

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

vision_rl-0.0.4.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

vision_rl-0.0.4-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file vision_rl-0.0.4.tar.gz.

File metadata

  • Download URL: vision_rl-0.0.4.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for vision_rl-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3c6cda85941f46189c62648ee9e3b59767320a31b05edcce9283e1d78552aded
MD5 ceced8510bc761eafdf7fcbeb38e99f0
BLAKE2b-256 a256525a3e91b72ec42781119a82e6eb98ff1e0a893e40983bdddd00393369ad

See more details on using hashes here.

File details

Details for the file vision_rl-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: vision_rl-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for vision_rl-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 07124121b0f7f0ea6d0dde7d0191e5e1a7334a0bd3a90f20e5b334c7979d7cde
MD5 7097cb3c5c7f41e9df25b4b01f9b1395
BLAKE2b-256 b92c59132a742f45ed2fa38066eb87536b482a88d98267bfa951a35d87c95ae1

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