Skip to content

Commit 163565c

Browse files
committed
Bump version to 5.0.1
1 parent 925671c commit 163565c

File tree

3 files changed

+7
-29
lines changed

3 files changed

+7
-29
lines changed

documentation/HAVC User Guide.pdf

10.6 KB
Binary file not shown.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exclude = [
1111

1212
[project]
1313
name = "vsdeoldify"
14-
version = "5.0.0"
14+
version = "5.0.1"
1515
description = "HAVC functions for VapourSynth"
1616
readme = "README.md"
1717
requires-python = ">=3.10"

vsdeoldify/__init__.py

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Date: 2024-02-29
55
version:
66
LastEditors: Dan64
7-
LastEditTime: 2025-02-12
7+
LastEditTime: 2025-02-14
88
-------------------------------------------------------------------------------
99
Description:
1010
-------------------------------------------------------------------------------
@@ -621,8 +621,9 @@ def HAVC_deepex(clip: vs.VideoNode = None, clip_ref: vs.VideoNode = None, method
621621
# ------------------------------------------------------------------------------------------------------------------
622622
# SPECIAL MANAGEMENT OF DeepRemaster (ex_model = 2)
623623
if method in (0, 1, 2) and ex_model == 2:
624-
return HAVC_restore_video(clip, clip_ref, method, render_speed, ex_model, ref_merge, ref_weight, sc_threshold,
625-
sc_frequency, ref_norm, max_memory_frames, render_vivid, encode_mode)
624+
HAVC_LogMessage(MessageType.EXCEPTION,
625+
"HAVC_deepex: DeepRemaster cannot be used with methods: 0, 1, 2 (HAVC)")
626+
626627
# SPECIAL MANAGEMENT OF METHOD=(5,6)
627628
if method in (5, 6):
628629
return HAVC_restore_video(clip, clip_ref, method, render_speed, ex_model, ref_merge, ref_weight, ref_thresh,
@@ -835,8 +836,8 @@ def HAVC_restore_video(clip: vs.VideoNode = None, clip_ref: vs.VideoNode = None,
835836
# disable packages warnings
836837
disable_warnings()
837838

838-
if method not in (0, 1, 2, 5, 6):
839-
HAVC_LogMessage(MessageType.EXCEPTION, "HAVC: Video restore is supported on with methods: 0, 1, 2, 5, 6")
839+
if method not in (5, 6):
840+
HAVC_LogMessage(MessageType.EXCEPTION, "HAVC: Video restore is supported only with methods: 5, 6")
840841

841842
if not isinstance(clip, vs.VideoNode):
842843
HAVC_LogMessage(MessageType.EXCEPTION, "HAVC_deepex: this is not a clip")
@@ -1484,29 +1485,6 @@ def HAVC_export_reference_frames(clip: vs.VideoNode, sc_framedir: str = "./", re
14841485
------------------------------------------------------------------------------------------------------------------------
14851486
"""
14861487

1487-
1488-
def _colorizer_stable(clip: vs.VideoNode = None, do_model: int = 0, deoldify_rf: int = 22,
1489-
mweight: float = 0.5) -> vs.VideoNode:
1490-
clip_colored = HAVC_colorizer(clip=clip, method=0, deoldify_p=[do_model, deoldify_rf, 1, 0])
1491-
1492-
# the adjustment force DeepRemaster to return a clip brown colored
1493-
clip_ref = havc_utils.adjust_rgb(rgb=clip_colored, rb=30.0, gb=10.0, bb=-20.0)
1494-
1495-
clip_brown = HAVC_restore_video(clip, clip_ref, render_speed="medium", ex_model=2, ref_merge=0, ref_thresh=0.10,
1496-
ref_freq=5, max_memory_frames=6, render_vivid=False, ref_norm=False)
1497-
1498-
# adjusting output color from: RGB24 to YUV420P8
1499-
clip_colored = vs.core.resize.Bicubic(clip=clip_colored, format=vs.YUV420P8, matrix_s="709", range_s="full")
1500-
clip_brown = vs.core.resize.Bicubic(clip=clip_brown, format=vs.YUV420P8, matrix_s="709", range_s="full")
1501-
1502-
clip_stable = vs.core.std.Merge(clipa=clip_brown, clipb=clip_colored, weight=mweight)
1503-
1504-
# adjusting output color from: YUV420P8 to RGB24
1505-
clip_stable = core.resize.Bicubic(clip=clip_stable, format=vs.RGB24, matrix_in_s="709", range_s="full")
1506-
1507-
return clip_stable
1508-
1509-
15101488
"""
15111489
-------------------------------------------------------------------------------
15121490
Author: Dan64

0 commit comments

Comments
 (0)