Closed Selur closed 1 year ago
MODEL_DIR is taken from environment variable MODEL_DIR
.
https://github.com/AkarinVS/vapoursynth-plugin/blob/359930cdbac9fffa9924d8d5e3fde01741c9764a/vfx/vfx.cc#L239
And assignment to os.environ
should set the environment variable, so I'm not sure what's going on.
Please try this build https://github.com/AkarinVS/vapoursynth-plugin/releases/download/v0.96/akarin-release-lexpr-amd64-v0.96.7z that introduces a model_dir
parameter to DLVFX
.
(That build also includes other enhancements, but those are not yet ready for production. Better to ignore them.)
Just ,tested:
path = 'i:/Hybrid/64bit/vsfilters/Support/Akarin/models'
clip = core.akarin.DLVFX(clip, op=0, strength=0.5,model_dir=path)
and it works. :) Thanks. :)
Thanks for confirmation.
Hi, I'm trying to get akatin.DLVFX working in a portable Vapoursynth/Python setup, using:
full script used: https://pastebin.com/cW3Bg4BV
But end up :
So seems like the MODEL_DIR is not taken from the environment, but from somewhere else.
=> Would it be possible to add another parameter to DLVFX to overwrite the 'MODEL_DIR'-variable or do you know another way to get this working?