![]() |
|
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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
RE: Deoldify Vapoursynth filter - Selur - 27.10.2025 Updated the torch add-on download to include v5.6.1. Cu Selur RE: Deoldify Vapoursynth filter - Selur - 28.10.2025 Since HAVC uses CLAHE, have you tried using zsmooth instead of cv2 for it? RE: Deoldify Vapoursynth filter - Dan64 - 28.10.2025 No, but cv2 should be already optimized being written in C/C++. In any case in the coloring pipeline, the bottleneck are elsewhere. For example, recently I had to perform some color adjustment on a 1440x1080 clip already colored, using this code clip = havc.HAVC_ColorAdjust(clip=clip, BlackWhiteTune="strong", BlackWhiteMode=4, BlackWhiteBlend="True", ReColor=False, chroma_resize=True)The encoding speed was about 30fps and in this case are used both LUTs and CLAHE. I admit that is not very fast, but given that in this case the CPU usage was 25% and the GPU usage was 9%, I think that the best option to increase the speed is using the chunk encoding as suggested in the chapter 4.0.4 of HAVC user guide. I tried to use Filtering->Filter Order/Queue->Use Filter Queue To build a script calling 2 times HAVC_ColorAdjust, using these settings The expected code to be generated is clip = havc.HAVC_ColorAdjust(clip=clip, BlackWhiteTune="strong", BlackWhiteMode=4, BlackWhiteBlend="True", ReColor=False)But Hybrid instead of generated the following code Please, could you fix it. Thanks, Dan RE: Deoldify Vapoursynth filter - Selur - 29.10.2025 Will look at it after work and try to reproduce it. RE: Deoldify Vapoursynth filter - Selur - 29.10.2025 Had quick peek at it before work: BlackWhiteBlend="True" doesn't show up, since it's the default. chroma_resize=True <= that is an unknown option to Hybrid. I will look into why 'BlackWhiteMode' isn't there. Looking at the FilterQueue entry 'vsColorAdjustBWMode;ScaleAbs - LUT' is listed. Okay, it was a mistake where I used: if (this->getBool("vsColorAdjustBWTune", parameters)) {if (this->getString("vsColorAdjustBWTune", parameters) != "none") {=> Uploaded a new test version which should create: # stabilize colors using ColorAdjust (HAVC)Cu Selur RE: Deoldify Vapoursynth filter - Dan64 - 29.10.2025 Now it works as expected. Thanks, Dan RE: Deoldify Vapoursynth filter - hallomanbh - 11.11.2025 "I am having a problem with the current version. Reference-based colorization is not working. Normal colorization methods like DDcolor and Deep-Remaster are working correctly, but other methods, including DeOldify and reference-based colorization, are not working at all." Script was successfully evaluated. Output video info: Frames: 6174 | Time: 0:04:06.960 | Size: 2560x720 | FPS: 25/1 = 25 | Format: YUV420P8 2025-11-11 12:48:35.600 [VSE Server]: incoming connection [VSE Server]: ConnectedState [VSE Server]: socket is ready to be read [VSE Server]: connection open: true [VSE Server]: connection readable: true [VSE Server] - Message received: changeTo ### C:\Users\Halloman\AppData\Local\Temp\tempPreviewVapoursynthFile12_48_35_600.vpy ### 2025-11-11 12:48:50.874 Failed to evaluate the script: Python exception: 'NoneType' object has no attribute 'format' Traceback (most recent call last): File "src/cython/vapoursynth.pyx", line 3378, in vapoursynth._vpy_evaluate File "src/cython/vapoursynth.pyx", line 3379, in vapoursynth._vpy_evaluate File "C:\Users\Halloman\AppData\Local\Temp\tempPreviewVapoursynthFile12_48_35_600.vpy", line 39, in clip = havc.HAVC_main(clip, EnableDeepEx=True, DeepExMethod=3, ScFrameDir="E:/Colorization NEW/Mahamantri Timmarusu/new colour/akvis", DeepExModel=0, DeepExEncMode=0, DeepExMaxMemFrames=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\__init__.py", line 324, in HAVC_main clip_colored = HAVC_main_colorizer(clip, Preset, ColorModel, CombMethod, VideoTune, ColorFix, ColorTemp, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\__init__.py", line 659, in HAVC_main_colorizer clip_colored = HAVC_deepex(clip=clip, clip_ref=None, method=DeepExMethod, render_speed=DeepExPreset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\__init__.py", line 1337, in HAVC_deepex clip_ref, orig_fmt_r = convert_format_RGB24(clip_ref) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\havc_utils.py", line 64, in convert_format_RGB24 original_format = clip.format ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'format' https://gofile.io/d/UvhXiP RE: Deoldify Vapoursynth filter - Selur - 11.11.2025 "No clue" from me without a debug output. Maybe Dan has an idea Cu Selur RE: Deoldify Vapoursynth filter - Dan64 - 11.11.2025 (11.11.2025, 09:31)hallomanbh Wrote: "I am having a problem with the current version. Reference-based colorization is not working. Normal colorization methods like DDcolor and Deep-Remaster are working correctly, but other methods, including DeOldify and reference-based colorization, are not working at all." Please provide the full script generated by Hybrid. Dan RE: Deoldify Vapoursynth filter - Selur - 11.11.2025 Assuming the folder exists and holds the expected files, the call: clip = havc.HAVC_main(clip, EnableDeepEx=True, DeepExMethod=3, ScFrameDir="E:/Colorization NEW/Mahamantri Timmarusu/new colour/akvis", DeepExModel=0, DeepExEncMode=0, DeepExMaxMemFrames=0) |