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.post200118

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.post200118
File Actions
cudacanvas-1.0.1.post200118-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for cudacanvas-1.0.1.post200118-cp311-cp311-win_amd64.whl
cudacanvas-1.0.1.post200118-cp311-cp311-manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for cudacanvas-1.0.1.post200118-cp311-cp311-manylinux2014_x86_64.whl
cudacanvas-1.0.1.post200118-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for cudacanvas-1.0.1.post200118-cp310-cp310-win_amd64.whl
cudacanvas-1.0.1.post200118-cp310-cp310-manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for cudacanvas-1.0.1.post200118-cp310-cp310-manylinux2014_x86_64.whl
cudacanvas-1.0.1.post200118-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for cudacanvas-1.0.1.post200118-cp39-cp39-win_amd64.whl
cudacanvas-1.0.1.post200118-cp39-cp39-manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for cudacanvas-1.0.1.post200118-cp39-cp39-manylinux2014_x86_64.whl
cudacanvas-1.0.1.post200118-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for cudacanvas-1.0.1.post200118-cp38-cp38-win_amd64.whl
cudacanvas-1.0.1.post200118-cp38-cp38-manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for cudacanvas-1.0.1.post200118-cp38-cp38-manylinux2014_x86_64.whl

Total release size: 3.5 MB

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

Download URL cudacanvas-1.0.1.post200118-cp311-cp311-win_amd64.whl
Size 99.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
2243dd9d40c9ff7839b11e9b1fb98bc2ccf492c0af2785e593a99f66cc076a17
BLAKE2b-256 checksum
How to use checksums
4cebd2c0dbfe320d0f8725a4088e2a37115a548294d35162abe675ef6854dae3
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.post200118-cp311-cp311-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post200118-cp311-cp311-manylinux2014_x86_64.whl
Size 81.5 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
504dc4f2bb8930572c5852d5d5f5d736c935d35c5c00616d13c07aa97a6bf510
BLAKE2b-256 checksum
How to use checksums
c940f39452464603ace4a058e4d0ec2f5fc4c6e0867a69ceb47d1b28a0c125ba
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.post200118-cp310-cp310-win_amd64.whl

Download URL cudacanvas-1.0.1.post200118-cp310-cp310-win_amd64.whl
Size 99.0 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
b2b915ef011c095f27ac335066044158db29c11376cab27d9ab6a71153c29a6a
BLAKE2b-256 checksum
How to use checksums
e182ca95da2008869130f71234f29c0d2023156dcb0bf26b20e0ea670029a2ba
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.post200118-cp310-cp310-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post200118-cp310-cp310-manylinux2014_x86_64.whl
Size 81.2 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5328260a49439d33fe59b6ebbe25ca95eb993399dd3e2193eca1180297be505c
BLAKE2b-256 checksum
How to use checksums
ce3889cf920aa4397b1f7e2e5268e2f013ddfe0a0a234d380dec70ab300154de
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.post200118-cp39-cp39-win_amd64.whl

Download URL cudacanvas-1.0.1.post200118-cp39-cp39-win_amd64.whl
Size 101.6 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
61c4d6c221d04347ea5abd335b18c2540881f5c0923d632a83631d57efcf6be4
BLAKE2b-256 checksum
How to use checksums
3b2b09585621a1e767036501bd9211468f351db4cba981dca7b0e8cfb8e3908c
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.post200118-cp39-cp39-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post200118-cp39-cp39-manylinux2014_x86_64.whl
Size 80.4 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5794576daab2cac1b6d4eeb0d6d01063694f2391cae13daa831b34831b2b61e9
BLAKE2b-256 checksum
How to use checksums
04abbfb251f04896cf9bfcea8715ffaaffbb65e32e8e7e44917e8fe66543e263
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.post200118-cp38-cp38-win_amd64.whl

Download URL cudacanvas-1.0.1.post200118-cp38-cp38-win_amd64.whl
Size 101.4 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
910916f1173f4c7cd6e945e7c6b4aac2949614d60a747e9e127816f9fa6b2ed4
BLAKE2b-256 checksum
How to use checksums
f89b20c6a546785e3d1761cba14f4da3ede697083d8008ab135e0ad663c8fc3a
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.post200118-cp38-cp38-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post200118-cp38-cp38-manylinux2014_x86_64.whl
Size 2.9 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
844781267ce4c1b8db8c3496a7cecf789396f79a4e02e4658652f0f61070c868
BLAKE2b-256 checksum
How to use checksums
93ccaa9e16f37f4bc44496f66b4b7e4cef5c3966395f1e190615b730c0557003
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.post200118

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