HolyWu / vs-dpir

DPIR function for VapourSynth
MIT License
32 stars 3 forks source link

torch 2.0 compatibility? #34

Closed Selur closed 1 year ago

Selur commented 1 year ago

Using: python -m pip install --upgrade vsdpir==3.0.1 I get:

Collecting vsdpir==3.0.1
  Downloading vsdpir-3.0.1-py3-none-any.whl (13 kB)
Requirement already satisfied: numpy in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vsdpir==3.0.1) (1.24.3)
Requirement already satisfied: requests in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vsdpir==3.0.1) (2.30.0)
Requirement already satisfied: tensorrt>=8.5.3.1 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vsdpir==3.0.1) (8.6.1)
Collecting torch-tensorrt-fx-only>=1.3.0 (from vsdpir==3.0.1)
  Downloading torch_tensorrt_fx_only-1.3.0-py3-none-any.whl (128 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.4/128.4 kB 7.9 MB/s eta 0:00:00
Requirement already satisfied: torch>=1.13.0 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vsdpir==3.0.1) (2.0.1+cu117)
Requirement already satisfied: tqdm in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vsdpir==3.0.1) (4.65.0)
Requirement already satisfied: vapoursynth>=55 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vsdpir==3.0.1) (62)
Requirement already satisfied: vsutil in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vsdpir==3.0.1) (0.8.0)
Requirement already satisfied: filelock in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.0->vsdpir==3.0.1) (3.12.0)
Requirement already satisfied: typing-extensions in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.0->vsdpir==3.0.1) (4.5.0)
Requirement already satisfied: sympy in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.0->vsdpir==3.0.1) (1.12)
Requirement already satisfied: networkx in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.0->vsdpir==3.0.1) (3.1)
Requirement already satisfied: jinja2 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.0->vsdpir==3.0.1) (3.1.2)
INFO: pip is looking at multiple versions of torch-tensorrt-fx-only to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install vsdpir and vsdpir==3.0.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    vsdpir 3.0.1 depends on torch>=1.13.0
    torch-tensorrt-fx-only 1.3.0 depends on torch<1.14.0 and >=1.13.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Could you update torch-tensorrt-fx-only and vs-dpir to work with torch 2.0.1?