Environments where agents can focus cameras on rendered objects.
Project description
Reinfocus
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:
- anaconda or
variants (recommended): use
conda install cudatoolkit - plain python (untested):
install
cudatoolkit, then setCUDA_HOME
Special Thanks
reinfocus.graphics is a numba translation of the wonderful Ray
Tracing in One Weekend in CUDA by Roger Allan.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
884a6488f8ca97d5a7398e686a6c863b38699d6b14e694bff77cd8695993d6f3
|
|
| MD5 |
1c2c0a5a668fb8ba32bc4c750055a1bd
|
|
| BLAKE2b-256 |
0605679a34c256b26c1ec92378a68581ddfc6fed6a3aeb8bbbb9c3cfc608dae4
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67d3781cf9e3cde756a7fd7264a60b1722d5c4e94f921ee5ecca14d4ec29da4b
|
|
| MD5 |
d5c109488771fcd565055e5aa6a73627
|
|
| BLAKE2b-256 |
08c63ec623a7866ee1d846c4f5269e3e76485041f6f40e923ea528ce5be63d1a
|