Skip to main content

Environments where agents can focus cameras on rendered objects.

Project description

Reinfocus

Python versions PyPI License: MIT Code style: black

reinfocus is a python package that makes it easy to create reinforcement learning environments that use ray tracing to simulate camera focus. See the examples for an impression of how it can be used.


A ppo trained agent acting in DiscreteSteps-v0. The checkerboard target is positioned at some depth, and the agent decides what depth to focus on. It receives as input the focus depth, focus value, and the change in both those since the last time step.

Installation

To install reinfocus, use pip install reinfocus.

For GPU support, install the lastest NVIDIA graphics drivers. Next you will need to install cudatoolkit; how you do that depends on what type of python installation you use:

Special Thanks

reinfocus.graphics is a numba translation of the wonderful Ray Tracing in One Weekend in CUDA by Roger Allan.

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

reinfocus-0.0.2.tar.gz (31.0 MB view details)

Uploaded Source

Built Distribution

reinfocus-0.0.2-py3-none-any.whl (47.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reinfocus-0.0.2.tar.gz
  • Upload date:
  • Size: 31.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for reinfocus-0.0.2.tar.gz
Algorithm Hash digest
SHA256 884a6488f8ca97d5a7398e686a6c863b38699d6b14e694bff77cd8695993d6f3
MD5 1c2c0a5a668fb8ba32bc4c750055a1bd
BLAKE2b-256 0605679a34c256b26c1ec92378a68581ddfc6fed6a3aeb8bbbb9c3cfc608dae4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reinfocus-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 47.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for reinfocus-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 67d3781cf9e3cde756a7fd7264a60b1722d5c4e94f921ee5ecca14d4ec29da4b
MD5 d5c109488771fcd565055e5aa6a73627
BLAKE2b-256 08c63ec623a7866ee1d846c4f5269e3e76485041f6f40e923ea528ce5be63d1a

See more details on using hashes here.

Supported by

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