Closed Selur closed 1 year ago
Have you tried to pad the input so that its width/height are multiples of 32?
Yes, resizing to 1632x1088 beforehand:
# load akarin plugin
core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/Support/Akarin/akarin.dll")
import os
clip = core.resize.Bicubic(clip=clip, format=vs.RGBS)
clip = core.fmtc.resample(clip=clip, kernel="spline16", w=1632, h=1088, interlaced=False, interlacedd=False) # resolution 1632x1088 for mod 32
# add akarin-folder to PATH (folder includes akarin.dll and all dlls from nvidia_video_effects_sdk_installer_ada)
os.environ["PATH"] += os.pathsep + 'i:/Hybrid/64bit/vsfilters/Support/Akarin'
clip = core.akarin.DLVFX(clip, op=0, strength=0.5,model_dir='i:/Hybrid/64bit/vsfilters/Support/Akarin/models')
also results in:
MODEL_DIR = i:/Hybrid/64bit/vsfilters/Support/Akarin/models
failed VFX call NvVFX_SetImage(d->vfx, NVVFX_INPUT_IMAGE, &d->srcGpuImg): ffffff90 (invalid pitch argument)
According to the NV docs, https://docs.nvidia.com/deeplearning/maxine/pdf/vfx-sdk-programming-guide.pdf, page 8.
The Artifact reduction filter only supports input resolution in [90p, 1080p]
, so in this case, perhaps h=1088
is too large.
Please try padding (i.e. std.AddBorders
) the input to make height/width multiples of 32, not resize (as it's hard to keep aspect ratio.) satisfy the requirement in the next message.
The requirements for input for the artifact reduction effect:
width >= 256
and width < 1920+128
and width % 128 == 0
.height >= 90
and height <= 1080
Special thanks to @WolframRhodium for figuring this out.
Thanks! Staying inside these restrictions seems to work fine.
btw. op=0: artefact reduction. int strength controls the strength (only 0 or 1 allowed).
seems wrong.
At least here, values between 0 and 1 work fine.
as internally the value is passed as an integer to the underlying effect, passing a value between 0 and 1 will be equivalent to passing 0.
The docs specifies that the effect only has two modes 0 and 1, please refer to the docs for details.
Ah okay. thanks for clearing that up. :)
Using:
works fine, but using: (using another source)
fails with:
I tried, sticking with RGB24, resizing to mod16, but neither of them helped.
Is this a bug, or am I missing something? here's the image I use as source: