This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Deoldify Vapoursynth filter
Feeding a 1250x833 image into HAVC, I get:
clip = havc.HAVC_main(clip, ColorFix="none", BlackWhiteTune="none")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\__init__.py", line 325, in HAVC_main
return HAVC_main_presets(clip, Preset, FrameInterp, ColorModel, CombMethod, VideoTune, ColorFix,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\__init__.py", line 532, in HAVC_main_presets
return restore_format(clip_final, orig_fmt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\havc_utils.py", line 174, in restore_format
clip = vsresize.resize_to_chroma(clip_info.clip_orig, clip)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\vsslib\vsresize.py", line 122, in resize_to_chroma
clip_yuv = vs.core.std.ShufflePlanes(clips=[clip_bw, clip_color, clip_color], planes=[0, 1, 2], colorfamily=vs.YUV)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "src/cython/vapoursynth.pyx", line 3129, in vapoursynth.Function.__call__
vapoursynth.Error: ShufflePlanes: plane 1 and 2 are not subsampled multiples of first plane
=> seems like mod2 is required.
Should I adjust Hybrid to take this into account, or should this be fixed in HAVC?

Cu Selur

Ps.: Added a dev which adds mod2 requirement for HAVC and ColorAdjust(HAVC).
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
I think that the division by 2 is a requirement for a lot of filters, not only HAVC.

Probably is better to add this check at the beginning of the script. 

I will check your dev. version.

Thanks,
Dan
Reply
Now that I think about it,.. at the moment Hybrid would add black borders,.. which will cause problems when Retinex is used.
Problem is that you are using YUV color space in your scripts and seemingly don't use 4:4:4 color sampling,... (mod2 usually is required for 4:2:0 or 4:1:1)
Will be afk. tomorrow, but I'll think about an option for Hybrid to use https://github.com/dubhater/vapoursynth-fillborders instead of addborders, which should work with Retinex.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)