Hybrid 2022.03.20.1: No module named 'vsdpir' - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html) +--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html) +--- Thread: Hybrid 2022.03.20.1: No module named 'vsdpir' (/thread-2330.html) |
RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Dan64 - 27.03.2022 I got the same output. I upgraded vspdir to 2.1.0 This time I got the following error when the preview window is shown: File "src\cython\vapoursynth.pyx", line 2832, in vapoursynth._vpy_evaluate File "src\cython\vapoursynth.pyx", line 2833, in vapoursynth._vpy_evaluate File "F:\VideoTests\Test_vsDpir\tempPreviewVapoursynthFile16_44_23_115.vpy", line 23, in clip = DPIR(clip=clip, strength=5.000, task="denoise", provider=1, device_id=0) File "D:\Programs\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdpir\__init__.py", line 92, in DPIR raise vs.Error("DPIR: model files have not been downloaded. run 'python -m vsdpir' first") vapoursynth.Error: DPIR: model files have not been downloaded. run 'python -m vsdpir' first RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022 Okay, seems like the models are missing, call: python -m vsdpir Cu Selur RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Dan64 - 27.03.2022 (27.03.2022, 16:46)Dan64 Wrote: I got the same output. I installed the missing modules with the command "python - m vsdpir first" But now the preview window is not shown I guess that vsdpir crashed. Maybe there is a problem of compatibility with my card (RTX 3060) but even CPU mode is not working. I decided to downgrade vsdpir to version 1.6.0 and it is working. I tested all versions (I had to run manually vsViewer.exe) and the last working version is 1.7.1. After that version vsdpir start to crash, I don't know if the problem could be due to the management of TensorRT model (even if this model was already available in version 1.7.1), but you should downgrade vsdipir to version 1.7.1 to improve Hybrid compatibility. RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022 With 2.0 vs-dpir switched to another runtime, which works fine here and you are the first to report problems with it so far, so I will hold off on downgrading to 1.7.1. The 'Vapoursynth\Lib\site-packages\onnxruntime\capi' folder contains, some dlls from the tensor sdk. My guess is that yes are in the wrong version. (Can't test here since I only own a 1070ti card) Cu Selur RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Dan64 - 27.03.2022 (27.03.2022, 17:27)Selur Wrote: With 2.0 vs-dpir switched to another runtime, which works fine here and you are the first to report problems with it so far, so I will hold off on downgrading to 1.7.1. I know, I also tried to unistall and reinstall onnxruntime-gpu, but vs-dpir still crash without issue any error message. RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022 When uninstalling onnxruntime-gpu, did you also remove the 'Vapoursynth\Lib\site-packages\onnxruntime'-folder ? If not, then you didn't uninstall it completely and the same dlls will be used when reinstalling onnxruntime-gpu . If you remove that folder you could manually install the CUDA SDK 11.4 (https://developer.nvidia.com/cuda-11-4-4-download-archive only the runtimes need to be installed) and the 'TensorRT 8.0 GA Update 1' (https://developer.nvidia.com/nvidia-tensorrt-8x-download only the runtimes are required) see: https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#requirements -> if you figure out which dlls are required for TenrsorRT let me know and I can add them to the normal download. Cu Selur Ps.: the required dlls can be placed into the 'Vapoursynth\Lib\site-packages\onnxruntime\capi'-folder and the installed runtimes can be deinstalled. RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022 the dlls I need for GTX cards are:
and I thought that
Cu Selur RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Dan64 - 27.03.2022 I will try also this solution. In meanwhile I tried the following steps: 1) Install Hybrid version 2021.12.10.1 with the previous torch archive. 2) Upgraded some of modules to get vs-dpir 2.1.0, my full list of modules if the following Package Version 3) Then I installed over the Hybrid version 2022.03.20.1 Now the preview window is working, but it is very slow, it took about 25sec to show the frames. I think that the reason is because I'm using torch 1.9.1+cu111. But the encoding still crash, I guess that the first frame is provided too late (probably after 25sec). I attached the full debug file. RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022 Speed is slow because CPU rendering is used. Encoding crashes due to: x264 output: y4m [error]: bad sequence header magic # Imports "D:\Programs\Hybrid\64bit\Vapoursynth\vspipe.exe" "F:\VideoTests\Test_vsDpir\encodingTempSynthSkript_2022-03-27@18_35_18_1610.vpy" - -c y4m | "D:\Programs\Hybrid\64bit\x264.exe" --preset fast --crf 18.00 --profile high10 --level 5.1 --sync-lookahead 30 --psy-rd 1.00:0.15 --vbv-maxrate 240000 --vbv-bufsize 720000 --sar 1:1 --deblock -1:-1 --non-deterministic --range tv --colormatrix bt709 --demuxer y4m --input-range tv --fps 25/1 --opencl --opencl-clbin "F:\VideoTests\Test_vsDpir\x264_lookahead_2022-03-27@18_35_18_1610_02.clbin" --output-depth 10 --output "F:\VideoTests\Test_vsDpir\2022-03-27@18_35_18_1610_02.264" - -> have you tried without the opencl option in x264? Cu Selur RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Dan64 - 27.03.2022 I'm worried that is using the CPU, since I selected "NVIDIA CUDA". The encoding crash even disabling opencl. I tried also x265, same problem. I will try your solution to add the NVIDIA dlls. |