Selur's Little Message Board
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)

Pages: 1 2 3 4 5 6 7 8


Hybrid 2022.03.20.1: No module named 'vsdpir' - Dan64 - 27.03.2022

I'm using the last version of Hybrid 2022.03.20.1, when I enable the check box Filtering->Vapoursynth->DeNoise->DPIR. I get the following error:



File "src\cython\vapoursynth.pyx", line 2832, in vapoursynth._vpy_evaluate
File "src\cython\vapoursynth.pyx", line 2833, in vapoursynth._vpy_evaluate
File "tempPreviewVapoursynthFile10_45_10_941.vpy", line 20, in
from vsdpir import DPIR
ModuleNotFoundError: No module named 'vsdpir'



RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022

Seems like you installed the new version over the existing Hybrid installation in which you had added the torchAddon and thus overwrote parts of the torchAddon. Smile
You should reapply the torchAddon that you downloaded.
I'll also send you a link to my current dev and torchAddon version.

Cu Selur


RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Dan64 - 27.03.2022

I installed the last version and the new archive torch addons, but I'm still unable to use DPIR.
I attached the full debug.


RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022

Does Vapoursynth Preview show an error?
Did you (like I asked): deinstall Hybrid, install the dev and the torchAddon I send you links to?


RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Dan64 - 27.03.2022

This is the script generated

# Imports
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# Loading Plugins
core.std.LoadPlugin(path="D:/Programs/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# source: 'F:\VideoTests\Test_vsDpir\Test_video_1m.mkv'
# current color space: YUV420P10, bit depth: 10, resolution: 1280x712, fps: 25, color matrix: 709, yuv luminance scale: limited, scanorder: progressive
# Loading F:\VideoTests\Test_vsDpir\Test_video_1m.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="F:/VideoTests/Test_vsDpir/Test_video_1m.mkv", format="YUV420P10", cache=0)
# Setting color matrix to 709.
clip = core.std.SetFrameProps(clip, _Matrix=1)
clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=1)
clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=1)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
from vsdpir import DPIR
# adjusting color space from YUV420P10 to RGBS for vsDPIRDenoise
clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, matrix_in_s="709", range_s="limited")
# denoising using DPIRDenoise
clip = DPIR(clip=clip, strength=5.000, task="denoise", provider=1, device_id=0)
# adjusting output color from: RGBS to YUV420P10 for x264Model
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, matrix_s="709", range_s="limited")
# set output frame rate to 25.000fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Output
clip.set_output()

But the preview windows this time is not shown.
I preformed a clean installation by removing Hybrid and then installing the last version. But the problem still remain.


RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022

last version = the dev version I send you a link to?


RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Dan64 - 27.03.2022

(27.03.2022, 12:56)Selur Wrote: last version = the dev version I send you a link to?

yes, version 2022.03.26.1

If I select as provider "Default CPU" the preview window is shown but it is empty.


RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022

Will look at it, but working on something else atm.


RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022

Send you new links for testing.

Cu Selur


RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - Selur - 27.03.2022

Does is change anything if you remove the following files from your Vapoursynth/64bit folder:
  • python310._pth
  • python310.dll
  • python310.zip
these files are not needed and belong to a test of mine.

Also if you open a command line prompt into the Hybrid/64bit/Vapoursynth folder and call:
python -m pip list
you should get a list of the installed packages, which should be
Package            Version
------------------ ------------
addict             2.4.0
bpyutils           0.2.0
certifi            2021.10.8
charset-normalizer 2.0.7
colorama           0.4.4
flatbuffers        2.0
idna               3.3
mmcv-full          1.3.16
numpy              1.22.1
onnxruntime-gpu    1.10.0
opencv-python      4.5.4.58
packaging          21.2
Pillow             8.4.0
pip                22.0.4
protobuf           3.19.4
pyparsing          2.4.7
PyYAML             6.0
regex              2021.11.2
requests           2.26.0
setuptools         58.2.0
timm               0.4.12
torch              1.10.0+cu111
torchvision        0.11.1
tqdm               4.62.3
typing-extensions  3.10.0.2
urllib3            1.26.7
VapourSynth        57
vsbasicvsrpp       1.4.1
vsdpir             2.0.0
vsgan              1.6.4
vshinet            1.0.0
vsrealesrgan       2.0.0
vsrife             2.0.0
vsswinir           1.0.0
vsutil             0.6.0
wheel              0.37.0
yapf               0.31.0
-> Do you get the same output?
Assuming you get the same output call:
pip install --upgrade vsdpir
and then:
python -m vsdpir
this should update vsDPIR to 2.1.0.

Also verify that the "Hybrid/64bit/Vapoursynth/python39_.pth"-file contains the line:
Lib\site-packages
if it doesn't something went wrong during the coying of the files.
This line is needed for python to find the installed modules of the addon.
The content of the 'python39_.pth' which comes with the addon, look like this:
Scripts
Lib\site-packages
python39.zip
.

# Uncomment to run site.main() automatically
#import site


Cu Selur