Skip to main content

No project description provided

Project description

wc_rocm

A wrapper around windows-capture that captures the screen directly into PyTorch CUDA tensors, avoiding CPU memory copies and inter-device memory transfers.

To avoid reinstalling torch, it's not listed as a dependency, but a ROCm-enabled PyTorch installation is required. It only works on x64 Windows with an AMD GPU.

Usage

from wc_rocm import WindowsCapture

capture = WindowsCapture(
    monitor_index=1,
    device_id=0,
    reuse_output_buffer=True,
    output_buffer_count=4,
)

When buffer reuse is enabled, tensors may be overwritten after several frames (ring-buffer behavior), so clone tensors in your callback if you need to keep them long-term.

Credits

This was written by gemini-cli and Claude Code. Originally written by NiiightmareXD windows-capture-python and forked from Nagadomi wc_cuda, then further optimized by Claude Code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wc_rocm-0.1.3.post1-cp310-abi3-win_amd64.whl (190.3 kB view details)

Uploaded CPython 3.10+Windows x86-64

File details

Details for the file wc_rocm-0.1.3.post1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for wc_rocm-0.1.3.post1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 35c99fc5c77098f15efc512fd06951127f049c958686e9b0780a8f901222eb6c
MD5 c39f937ed08598813fe637bbaf254ae0
BLAKE2b-256 c6325b688ef22f4f131e0944d7a60d765dfd1180eecd2eceda2bab1e68f4a508

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page