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 - 09.02.2025

Now "SC thresh", "SC SSIM thresh" and "SC min freq" are always disabled.


RE: Deoldify Vapoursynth filter - Selur - 09.02.2025

Those are enabled when refMerge is used.
bool useExModel = model->boolValue("vsHAVCUseExModel");
int methodIndex = model->currentIndex("vsHAVCExModelMethod");
bool allowRefMerge = useExModel && (methodIndex == 0 || methodIndex == 1 || methodIndex == 5);
bool usingRefMerge = allowRefMerge && model->currentIndex("vsHAVCExModelRefMerge") != 0;

this->doSetEnabled(model, "vsHAVCExModelSCThreshold", usingRefMerge);
this->doSetEnabled(model, "vsHAVCExModelScThtSSIM", usingRefMerge);
this->doSetEnabled(model, "vsHAVCExModelSCMinFreq", usingRefMerge);
Are those now independent of refMerge?

Cu Selur


RE: Deoldify Vapoursynth filter - Dan64 - 09.02.2025

They are always  used, because are the minimum fields necessary to extract the reference frames from a Video Clip.
With Ref merge there are 2 steps of scene detection, one performed with ScMinFreq=1 (automatically set by HAVC_main) and the second that is using  "SC thresh"  and "SC min freq" to extract the reference frame to be used for the temporal stabilization.

Dan


RE: Deoldify Vapoursynth filter - Selur - 09.02.2025

Okay, updated Hybrid_deoldify to always enable and add (when they are not at the default value) them when exModel is used.

Cu Selur


RE: Deoldify Vapoursynth filter - Dan64 - 09.02.2025

When is selected DeepRemaster the "Frames" are not reported in the script

[Image: attachment.php?aid=2974]

Dan


RE: Deoldify Vapoursynth filter - Selur - 09.02.2025

Quote:Every time the Exemplar Models are enabled and for the models: 0, 1, 2, 5, 6.
You meant 'methods' (0,1,2,5,6) and then I mixed then method and model too Tongue

Updated Hybrid_deoldify

Cu Selur


RE: Deoldify Vapoursynth filter - Dan64 - 09.02.2025

This is a special case when the directory can be select (for output)

[Image: attachment.php?aid=2975]

Dan


RE: Deoldify Vapoursynth filter - Selur - 09.02.2025

Updated Hybrid_deoldify.
Are there also restriction on when "Reference frames only" should be available?

Cu Selur


RE: Deoldify Vapoursynth filter - Dan64 - 09.02.2025

(09.02.2025, 18:17)Selur Wrote: Updated Hybrid_deoldify.
Are there also restriction on when "Reference frames only" should be available?

Cu Selur

In my code there is already this check implemented

if not (ScFrameDir is None) and DeepExMethod != 0 and DeepExOnlyRefFrames:
        HAVC_LogMessage(MessageType.EXCEPTION,
                        "HAVC_main: DeepExOnlyRefFrames is enabled but method not = 0 (HAVC)")


Dan


RE: Deoldify Vapoursynth filter - Selur - 09.02.2025

Adjusted Hybrid_deoldify to only enable "Reference frames only" when Method is 0 and ScFrameDir isn't empty.

Cu Selur