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.2.tar.gz (13.2 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.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vision_rl-0.0.2.tar.gz
  • Upload date:
  • Size: 13.2 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.2.tar.gz
Algorithm Hash digest
SHA256 fba4617936062059d81f8b104deb23a39f8966fc2fa1108e0e5fe4efc33a65ff
MD5 90514f140ea900af93ee57733fdf7e59
BLAKE2b-256 efd53263ee2f127e4731dc63ff3e3faa336a8377db956ffd88e1165e94a85771

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vision_rl-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac53d494dfd484b3e2943cb12cc4261765aef0230a8e29e0c91694e997a9977e
MD5 f81783ef81d3f91673968247ae8e97da
BLAKE2b-256 843c7ee67326707268fa694f1fd67c37cc3daef63a13ad4f00549e4d37c97aec

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