Closed Selur closed 1 year ago
This looks weird since error 1114 is ERROR_DLL_INIT_FAILED
but NNVISR does not have dll initialization logic at all, so this could only come from some dependency library.
Can you install https://github.com/adamrehn/dll-diagnostics and run dlldiag deps vs-nnvisr.dll
to see if the dependencies can be correctly loaded?
And by the way, you are not placing model files and calling NNVISR correctly. How to place model files is documented here and example to call NNVISR is provided here. We also don't have models trained on bt470bg colorspace, so you probably should convert your clip to bt709 first.
We also don't have models trained on bt470bg colorspace, so you probably should convert your clip to bt709 first.
Thanks for that info, I'll keep that in mind when I get it running.
Can you install https://github.com/adamrehn/dll-diagnostics and run dlldiag deps vs-nnvisr.dll to see if the dependencies can be correctly loaded?
Can't get dlldiag working in my portable Vapoursynth.
Using https://www.dependencywalker.com/
it seems to me that everything the dll needs is there.
Okay, I figured it out, vs-nnvisr.dll doesn't look next to it but only searches the PATH variable. So by using explicitly adding the dll folder to the PATH:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
import site
import os
import ctypes
# Adding torch dependencies to PATH
path = site.getsitepackages()[0]+'/../vsfilters/ResizeFilter/NNVISR'
ctypes.windll.kernel32.SetDllDirectoryW(path)
path = path.replace('\\', '/')
os.environ["PATH"] = path + os.pathsep + os.environ["PATH"]
the dll can be loaded.
Thanks
Thanks for the info. This is not intended and a fix will be available later.
Tried to test it by extracting everything into "F:/Hybrid/64bit/vsfilters/ResizeFilter/NNVISR" ending with:
Problem is, when I use:
I get:
So the loading of the dll already fails. :(
I'm using portable Vapoursynth R63 (tried R62 too) on Windows 11 (64GB RAM, Ryzen 9 7950x) with a Geforce RTX4080 v535.98 studio drivers.