pytorch / pytorch/vision

Windows torchvision-0.11.1 CUDA-10.2 wheel packages are not bundled with nvjpeg dll

Open
#4,894 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release-issue topic: binaries windows
Dominant language
Python
Stars
17.9k
Forks
7.3k
Avg merge
1d 15h
Merged PRs (30d)
13

Description

🐛 Describe the bug

Steps to reproduce:

  1. Download TorchVision 0.11.1 windows wheel from https://download.pytorch.org/whl/cu102/torchvision/
  2. Unpack the binary
  3. Run dumpbin /dependents image.pyd to make sure it depends on nvjpeg64_10.dll:
C:\Users\circleci\Downloads\torchvision>dumpbin /dependents image.pyd
Microsoft (R) COFF/PE Dumper Version 14.00.24245.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file image.pyd

File Type: DLL

  Image has the following dependencies:

    api-ms-win-crt-heap-l1-1-0.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    api-ms-win-crt-filesystem-l1-1-0.dll
    api-ms-win-crt-stdio-l1-1-0.dll
    libpng16.dll
    nvjpeg64_10.dll
    c10.dll
    torch_cpu.dll
    cudart64_102.dll
    c10_cuda.dll
    MSVCP140.dll
    KERNEL32.dll
    VCRUNTIME140_1.dll
    VCRUNTIME140.dll
    api-ms-win-crt-string-l1-1-0.dll
    api-ms-win-crt-environment-l1-1-0.dll

  Summary

        2000 .data
        3000 .pdata
       2E000 .rdata
        1000 .reloc
        1000 .rsrc
       3C000 .text

  1. Noticesthat nvjpeg64_10.dll is missing from the archive

This causes torchvision.io.read_image fail on Windows

Versions

0.11.1 win+cu102

cc @peterjc123 @nbcsm @guyang3532 @maxluk @gunandrose4u @mszhanyi

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by unpacking the torchvision 0.11.1 Windows cu102 wheel from the linked download and inspect image.pyd with dumpbin /dependents. Verify how the archive handles the reported nvjpeg64_10.dll dependency, then confirm that torchvision.io.read_image works on Windows once the wheel includes the required DLL.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
build-system, computer-vision, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.