Selur's Little Message Board
Deoldify Vapoursynth filter - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Talk, Talk, Talk (https://forum.selur.net/forum-5.html)
+--- Forum: Small Talk (https://forum.selur.net/forum-7.html)
+--- Thread: Deoldify Vapoursynth filter (/thread-3595.html)



RE: Deoldify Vapoursynth filter - Dan64 - 11.09.2025

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


RE: Deoldify Vapoursynth filter - Selur - 11.09.2025

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

Cu Selur


RE: Deoldify Vapoursynth filter - Dan64 - 11.09.2025

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


RE: Deoldify Vapoursynth filter - Selur - 11.09.2025

Quote:1) the "B&W mode" "ScaleAbs + Simple(RGB)" should be renamed in "CLAHE (luma) + Simple(RGB)"
for both HAVC_main and ColorPostProcessing?


RE: Deoldify Vapoursynth filter - Dan64 - 11.09.2025

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


RE: Deoldify Vapoursynth filter - Selur - 11.09.2025

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,...


RE: Deoldify Vapoursynth filter - Dan64 - 11.09.2025

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


RE: Deoldify Vapoursynth filter - Selur - 11.09.2025

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


RE: Deoldify Vapoursynth filter - Dan64 - 11.09.2025

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


RE: Deoldify Vapoursynth filter - Selur - 11.09.2025

Updated Hybrid_havc_test