Skip to main content

Buy Me A Coffee Twitter Twitter PyPI version Downloads

cudacanvas

CudaCanvas: Real-time PyTorch Tensor Image Visualisation in CUDA, Eliminating CPU Transfer

CudaCanvas is a simple Python module that eliminates CPU transfer for Pytorch tensors for displaying and rendering images in the training or evaluation phase, ideal for machine learning scientists and engineers.

Simplified version that directly displays the image without explicit window creation (cudacanvas >= v1.0.1)

import torch
import cudacanvas


#REPLACE THIS with you training loop
while (True):

    #REPLACE THIS with you training code and generation of data
    noise_image = torch.rand((4, 500, 500), device="cuda")

    #Visualise your data in real-time
    cudacanvas.im_show(noise_image)

    #OPTIONAL: Terminate training when the window is closed
    if cudacanvas.should_close():
        #end process if the window is closed
        break

And with explicit window creation

import torch
import cudacanvas

noise_image = torch.rand((4, 500, 500), device="cuda")

cudacanvas.set_image(noise_image)
cudacanvas.create_window()

#replace this with you training loop
while (True):

    cudacanvas.render()

    if cudacanvas.should_close():
        #end process if the window is closed
        break

Installation

Before instllation make sure you have torch with cuda support already installed on your machine

We aligned pytorch and cuda version with our package the supporting packages are torch (2.0.1, 2.1.2 and 2.2.2) and (11.8 and 12.1)

Identify your current torch and cuda version

import torch
torch.__version__

Depending on your torch and cuda you can install the relevant cudacanvas package, for the latest 2.2.2+cu121 you can simply download the latest package

pip install cudacanvas

For other torch and cuda packages put the torch and cuda version after that cudacanvas version for example for 2.1.2+cu118 the Cudacanvas package you require is 1.0.1.post212118

pip install cudacanvas==1.0.1.post212118 --force-reinstall

Support

Also support my channel ☕ ☕ : https://www.buymeacoffee.com/outofai

Metadata

Release files for cudacanvas 1.0.1.post220118

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for cudacanvas 1.0.1.post220118
File Actions
cudacanvas-1.0.1.post220118-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for cudacanvas-1.0.1.post220118-cp312-cp312-win_amd64.whl
cudacanvas-1.0.1.post220118-cp312-cp312-manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for cudacanvas-1.0.1.post220118-cp312-cp312-manylinux2014_x86_64.whl
cudacanvas-1.0.1.post220118-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for cudacanvas-1.0.1.post220118-cp311-cp311-win_amd64.whl
cudacanvas-1.0.1.post220118-cp311-cp311-manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for cudacanvas-1.0.1.post220118-cp311-cp311-manylinux2014_x86_64.whl
cudacanvas-1.0.1.post220118-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for cudacanvas-1.0.1.post220118-cp310-cp310-win_amd64.whl
cudacanvas-1.0.1.post220118-cp310-cp310-manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for cudacanvas-1.0.1.post220118-cp310-cp310-manylinux2014_x86_64.whl
cudacanvas-1.0.1.post220118-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for cudacanvas-1.0.1.post220118-cp39-cp39-win_amd64.whl
cudacanvas-1.0.1.post220118-cp39-cp39-manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for cudacanvas-1.0.1.post220118-cp39-cp39-manylinux2014_x86_64.whl
cudacanvas-1.0.1.post220118-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for cudacanvas-1.0.1.post220118-cp38-cp38-win_amd64.whl
cudacanvas-1.0.1.post220118-cp38-cp38-manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for cudacanvas-1.0.1.post220118-cp38-cp38-manylinux2014_x86_64.whl

Total release size: 3.5 MB

Release files / cudacanvas-1.0.1.post220118-cp312-cp312-win_amd64.whl

Download URL cudacanvas-1.0.1.post220118-cp312-cp312-win_amd64.whl
Size 97.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
1faada26c632d3c9553a348b25c85f57a743cd307fb60073dc364f3e655d2c88
BLAKE2b-256 checksum
How to use checksums
c162ad087366dc59116d5c4b8492b34ab5279b976763c0196d836760fe1ef461
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / cudacanvas-1.0.1.post220118-cp312-cp312-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post220118-cp312-cp312-manylinux2014_x86_64.whl
Size 82.8 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
8ddf80f10d70660e29693fd00bf22d0116f503658b91b1fe8d1b89273b4e5300
BLAKE2b-256 checksum
How to use checksums
3070cbd2e0f63fd987dc7e5920adfe18c1842d0868f3fe2183b6e458c252ea13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / cudacanvas-1.0.1.post220118-cp311-cp311-win_amd64.whl

Download URL cudacanvas-1.0.1.post220118-cp311-cp311-win_amd64.whl
Size 97.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
c63593178f58f82304e0ab1e607443ad5368f62d98d7d3885cefa6ae010da33e
BLAKE2b-256 checksum
How to use checksums
20c292dd823e68d3b1ae1895c344e58a5f6cc8f29346acfe54df010eea8090d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / cudacanvas-1.0.1.post220118-cp311-cp311-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post220118-cp311-cp311-manylinux2014_x86_64.whl
Size 82.7 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
fb53117dd32d3f76bf6f4afb7cda0e135abe70afc00e5872172205366e53f9de
BLAKE2b-256 checksum
How to use checksums
1ab948fa02ddff081e7cff5a1d8b12efb26f657f68434ed9a4ea7488908bdd7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / cudacanvas-1.0.1.post220118-cp310-cp310-win_amd64.whl

Download URL cudacanvas-1.0.1.post220118-cp310-cp310-win_amd64.whl
Size 96.4 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
f341fd7e38feac8ac583a1014ac55b3d3d31e465dfa85a7b9dd1e6cb24f56d19
BLAKE2b-256 checksum
How to use checksums
ff5ef67c9a5ed1eeaafe11890d6767538a46e056d9a59fd8539b514a9a01efbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / cudacanvas-1.0.1.post220118-cp310-cp310-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post220118-cp310-cp310-manylinux2014_x86_64.whl
Size 80.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0ef5708d324ddc9e34c24fe6f3fa508c638208db23c398a01586d0d200c6c864
BLAKE2b-256 checksum
How to use checksums
6f88fbb9384cd0527c4b1e37cfd68b0f598fbe244800fb5976588362cf55d8e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / cudacanvas-1.0.1.post220118-cp39-cp39-win_amd64.whl

Download URL cudacanvas-1.0.1.post220118-cp39-cp39-win_amd64.whl
Size 98.4 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
c7b5f01a372cc6751fc2316523c2a07cb18b6097b48d528de485c08c09288691
BLAKE2b-256 checksum
How to use checksums
8591f664e5694ab9e9624d5b501b83229e3e1f7b2f2fabf8acab83067f3e0713
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / cudacanvas-1.0.1.post220118-cp39-cp39-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post220118-cp39-cp39-manylinux2014_x86_64.whl
Size 80.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3a252b1d78a9e950905571068dcf8e3d02030ecbdd8d5738d447c6bd2aea1581
BLAKE2b-256 checksum
How to use checksums
c6c3e82362ec918f6c46051ab4b8cc8d4600ae36c8437483206962d155efd113
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / cudacanvas-1.0.1.post220118-cp38-cp38-win_amd64.whl

Download URL cudacanvas-1.0.1.post220118-cp38-cp38-win_amd64.whl
Size 98.9 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
0f02f4248ba85af0c27e3714c979b2cd7df1d56a5b2c61af8aed7492b90f2146
BLAKE2b-256 checksum
How to use checksums
e426b1071b35f84c990436d7cf2ffc3831876a9f765cd3372c30bfdeffe8eb04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / cudacanvas-1.0.1.post220118-cp38-cp38-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post220118-cp38-cp38-manylinux2014_x86_64.whl
Size 2.7 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3909eda8126269003672a0bf0a6054c47fbca825a44255a4b83ff6b46a1601b0
BLAKE2b-256 checksum
How to use checksums
4e0865cc73092d8f6f3cbbcd6a71a1b203f521a39d1cca8e95a9ed1e4d0b838b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for cudacanvas 1.0.1.post220118

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page