Skip to content

Support GPU Image Decoding#249

Draft
Queuecumber wants to merge 87 commits into
developfrom
feature/gpuimage
Draft

Support GPU Image Decoding#249
Queuecumber wants to merge 87 commits into
developfrom
feature/gpuimage

Conversation

@Queuecumber

@Queuecumber Queuecumber commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

This PR adds support for image decoding on GPU using NVImageCodec

NVImageCodec supports CUDA accelerated decoding of most common image formats and in particular supports the hardware JPEG decoding chip on modern NVIDIA GPUs.

Users can now specify a image_decode_device argument which can be cpu, gpu or an integer CUDA device ordinal. Rhis will transparently invoke NVImageCodec and return a tensor already on GPU. If NVImageCodec fails for any reason, the current behavior is to keep the webdataset autodecode path and fall back on it for CPU decoding.

voegtlel and others added 30 commits July 4, 2025 18:03
e.g. resetting the state properly after ending a generator, saving state of sample buffer, skipping state of watchdog, log, gc dataset.
Adapt required changes in tests.
Add typing to specific saved states (instead of FlexState).
Make debug output conditional.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants