Selur's Little Message Board

Full Version: Deoldify Vapoursynth filter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Before calling the filter it is necessary to convert the clip to RGB24 (as usual)

Code:
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).

Code:
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

Code:
    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
Uploaded a new Hybrid_havc_test which should enforce RGB24 and use limited->full.

Cu Selur
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

Code:
: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
Quote:1) the "B&W mode" "ScaleAbs + Simple(RGB)" should be renamed in "CLAHE (luma) + Simple(RGB)"
for both HAVC_main and ColorPostProcessing?
yes, please note that the tooltip of "B&W tune" contains also

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

Dan
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,...
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
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
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
Updated Hybrid_havc_test