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

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

Total release size: 3.5 MB

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

Download URL cudacanvas-1.0.1.post221121-cp312-cp312-win_amd64.whl
Size 97.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
2d74dc3efc32222b2fa1802777f834e47dc4110c55941ee8c7befe416d3c325f
BLAKE2b-256 checksum
How to use checksums
01efedcd35d58bdc9e9e358352aafa137a07d7e313658255204079f02c54f098
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.post221121-cp312-cp312-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post221121-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
059cac94264300d837bd87196e411eb222c7f6dcbc88fd549beb14a611d9d86c
BLAKE2b-256 checksum
How to use checksums
a4bbaeac94fade3dd00f4f8c60a3d00e7141b9285f88b4d6e6528a287411836c
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.post221121-cp311-cp311-win_amd64.whl

Download URL cudacanvas-1.0.1.post221121-cp311-cp311-win_amd64.whl
Size 97.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
9eba0a4655c941a897e4eb052691d84cc88a9bda332a8edf16974aadad7214b1
BLAKE2b-256 checksum
How to use checksums
bac69f66d9812940d2916445fe6afe95bbe131acf7832299897072556d32d81d
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.post221121-cp311-cp311-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post221121-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
bc213f6ec015ddc14f975281f36f29868c7121d02f5861e8cd0404dec5eb42d1
BLAKE2b-256 checksum
How to use checksums
0366cd9f5f4ac44b2b197c60e07651b75b85bab13a52b4c7c2f3d27aea647986
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.post221121-cp310-cp310-win_amd64.whl

Download URL cudacanvas-1.0.1.post221121-cp310-cp310-win_amd64.whl
Size 96.4 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
b792b78e1bb34644a41d8ad3c70af8793141cdf5a253fc1adce0fb32ed874936
BLAKE2b-256 checksum
How to use checksums
4ffcf7df27fd16b0cd392a7983b31266970c67e624d1be8c0731cb7b8dd8e84f
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.post221121-cp310-cp310-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post221121-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
2b6913d470f8e5229971c19da8e74e53a8325075925cb5758cd0b8ff3e0c2aae
BLAKE2b-256 checksum
How to use checksums
93b3260dbbc90d728cc723d382c8d17065205c4ee19ea6084e5cb3342d5e68eb
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.post221121-cp39-cp39-win_amd64.whl

Download URL cudacanvas-1.0.1.post221121-cp39-cp39-win_amd64.whl
Size 98.4 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
35171e2aca61b0d432a881c9b31447d1cd201f84afd926185c1488b5faf1da44
BLAKE2b-256 checksum
How to use checksums
c2953d7659e243f93e422842030d928c646ea38e1e74cc676463bc3ce5e2ee48
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.post221121-cp39-cp39-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post221121-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
45a7685b5c056765a3d9c43ceb03bab63f55701e4c8c58b83880b0f50e37d2c5
BLAKE2b-256 checksum
How to use checksums
bf15c263613b50d490a3540ab56aa92c5c6ef715ac947d23611dcf2d50b44780
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.post221121-cp38-cp38-win_amd64.whl

Download URL cudacanvas-1.0.1.post221121-cp38-cp38-win_amd64.whl
Size 98.9 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
73c83b6e2184907e37f05446cf01441dad0c60f924903202f275e53c32ca0f3d
BLAKE2b-256 checksum
How to use checksums
bdac8ece02676232f89f5b58913c2767a80b628e256ad9911888f1a6a980cdaa
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.post221121-cp38-cp38-manylinux2014_x86_64.whl

Download URL cudacanvas-1.0.1.post221121-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
d13a4fd93648e08cec760f5dae3076657025532507d3267f0bdee9bc83581e9e
BLAKE2b-256 checksum
How to use checksums
01e4529e3048e8ba43582f2168fe60ef33499f028a3503656039f67ea670f5bf
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.post221121

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