Interactyive python viewers
Project description
PyViewer
Pyviewer is a python library for easily visualizing NumPy arrays and PyTorch tensors.
Components
single_image_viewer.py
A viewer for showing single fullscreen images without other UI elements. Runs in a separate process and remains interactive even if the main process is suspended (e.g. in a debugger). Great for interactively looking at intermediate values of complex ML/CG/CV pipelines.
toolbar_viewer.py
A viewer that shows ImGui UI elemets on the left, and a large image on the right. Runs in the main process, but supports visualizing torch tensors directly from GPU memory (unlike single_image_viewer).
Other features
- Bundles a custom build of PyImGui with plotting support (via ImPlot)
- Dynamically rescalable user interface
- Window resizing to integer multiple of content resolution
Installation
pip install pyviewer
Usage
See examples/demo.py
for a usage example.
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
File details
Details for the file pyviewer-1.3.4.tar.gz
.
File metadata
- Download URL: pyviewer-1.3.4.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d668288d0acab134821202aac16b50fb6a46422e49293cc07e9efad7dd775cb |
|
MD5 | 667d073148085b25eb2958476a678afd |
|
BLAKE2b-256 | d90ed419be047abf49e265541d5159a11818da47bb2a30d1e05ababb19f5c454 |
File details
Details for the file pyviewer-1.3.4-py3-none-any.whl
.
File metadata
- Download URL: pyviewer-1.3.4-py3-none-any.whl
- Upload date:
- Size: 1.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1613a5e2e0cf366f7b55ed0a1310b369a55d94ec2fe0a3588c1ff0f9cd827311 |
|
MD5 | dc5e378c82c04ef71db40868898c1ea5 |
|
BLAKE2b-256 | 404cb4013f8b381369d96a2ff9378a02fda7fa6e6cfd7eecf66764b672e9251e |