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
Before calling the filter it is necessary to convert the clip to RGB24 (as usual)

clip = clip.resize.Bicubic(format=vs.RGB24, matrix_in_s="709", range_in_s="limited", range_s="full")

But the generated code convert the clip in RGBS format (note: limited -> limited).

clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, matrix_in_s="709", range_in_s="limited", range_s="limited")


Now I added this check in the filter

    if clip.format.id != vs.RGB24:
        HAVC_LogMessage(MessageType.WARNING, "ColorPostProcessing: clip not in RGB24 format, it will be converted")
        # clip not in RGB24 format, it will be converted
        if clip.format.color_family == "YUV":
            clip = clip.resize.Bicubic(format=vs.RGB24, matrix_in_s="709", range_s="full",
                                       dither_type="error_diffusion")
        else:
            clip = clip.resize.Bicubic(format=vs.RGB24, range_s="full")



But it is better that the conversion is provided by Hybrid.

Dan
Reply
Uploaded a new Hybrid_havc_test which should enforce RGB24 and use limited->full.

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

Main changes:

1) the "B&W mode" "ScaleAbs + Simple(RGB)" should be renamed in "CLAHE (luma) + Simple(RGB)"

2) In HAVC_main I added the parameter FrameInterp (integer), the meaning of parameter is the following

:param FrameInterp:         This parameter will allow to enable the frame interpolation. This method will use
                             Deep-Exemplar to interpolate the colored frames. If = 0, the interpolation is disabled,
                             if > 0 represent the number of frames used for interpolation. The quality of
                             interpolation will decrease with the number of frames, suggested value is 5.
                             Range [0-10], Default = 0

Using this approach it is possible to speed-up the coloring process by 30%-50% (depending on the settings) without significant color loss.

Dan


Attached Files
.zip   vsdeoldify-5.5.0_RC5.zip (Size: 453,34 KB / Downloads: 4)
Reply
Quote:1) the "B&W mode" "ScaleAbs + Simple(RGB)" should be renamed in "CLAHE (luma) + Simple(RGB)"
for both HAVC_main and ColorPostProcessing?
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
yes, please note that the tooltip of "B&W tune" contains also

'Light+Custom',   x2
'Medium+Custom',  x2
'Strong+Custom'   x2
 
that was decided to remove.

Dan
Reply
Is FrameInterp a 'Exemplar Models' sub-option or a general option?
Is it only available when Deep-Exemplar is used as DeepExModel?

Quote:FrameInterp: This parameter will allow to enable the frame interpolation. This method will use
Deep-Exemplar to interpolate the colored frames. If = 0, the interpolation is disabled,
if > 0 represent the number of frames used for interpolation. The quality of
interpolation will decrease with the number of frames, suggested value is 5.
Range [0-10], Default = 0
you might want to add something about what the gain of using this is,.. atm. it only states the downside of using the option,...
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
No, it is a general option of HAVC, is not necessary that the "Exemplar Models" is checked. Only the HAVC coloring process will be speed up.
This solution should also solve the problem of double encoding on my side.

Dan
Reply
Quote: This method will use Deep-Exemplar to interpolate the colored frames.
So independent of Exemplar Model Deep-Exemplar will be used if the option has a value > 0?

Cu Selur

Ps.: Updated Hybrid_havc_test
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
yes, as you wrote in the tool-tip.
The new field  Interpolation is passed properly but is disabled if "exemplar Models" is unchecked, please fix it.

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


Forum Jump:


Users browsing this thread: 8 Guest(s)