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

Finally released HAVC 5.0

The main changes introduced are:
  • Added new exemplar-based model: DeepRemaster
  • Added new functionality to use external colored movies as reference image source
  • Added new functionality to restore old colored movies with DeepRemaster
  • Added new APIs supporting the new functionalities
  • Updated the User Guide with the description of the new functionalities and more examples
  • Added the folder samples with some clips and reference images that can be used to test the filter.

For the users that already known this filter could be interesting read the new chapter:
  • 4.3 - Using HAVC to restore old colored videos

In the User Guide there is an explanation of the new interface

[Image: attachment.php?aid=2988]

Dan


RE: Deoldify Vapoursynth filter - Selur - 12.02.2025

Updated Hybrid_deoldify, it should now disable and exclude the parameters.

Cu Selur


RE: Deoldify Vapoursynth filter - Dan64 - 12.02.2025

When at the start, I check HAVC I get the following settings

[Image: attachment.php?aid=2990]
The parameters: Coloring, Color map, Combine and Stabilize are disabled.
When I check "Exemplar Models" they are enabled.

 [Image: attachment.php?aid=2991]

The parameters above "Exemplar Models" must always be enabled when  "Exemplar Models"  is unchecked (disabled).

Moreover the parameters to disable when method in: 3, 4, 5, 6  are:

Preset  -> Speed
ColorModel -> Coloring
CombMethod -> Combine
VideoTune -> Stabilize
ColorFix -> Color tweaks

while is your implementation

"Color map" is disabled while should be enabled
"Speed" and "Color tweaks" are enabled, while should be disabled

Dan


RE: Deoldify Vapoursynth filter - Selur - 12.02.2025

Uploaded a new Hybrid_deoldify.

Cu Selur


RE: Deoldify Vapoursynth filter - djilayeden - 12.02.2025

Dear Dan,
Thank you for updating the User Guide with the description of the new functionalities and additional examples. Your effort in making the documentation clear and comprehensive is greatly appreciated!
Best regards,


remasternet.pth.tar File not Found - hallomanbh - 13.02.2025


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\__init__.py", line 344, in HAVC_main
clip_colored = HAVC_DeepRemaster(clip, render_vivid=DeepExVivid, ref_dir=ScFrameDir,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\__init__.py", line 1198, in HAVC_DeepRemaster
return vs_remaster_colorize(clip, length, render_vivid, ref_dir, ref_minedge,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\remaster\__init__.py", line 251, in vs_remaster_colorize
engine = RemasterEngine(device_index=device_index,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\remaster\remaster_render.py", line 333, in __init__
self.model_load(model_dir)
File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsdeoldify\remaster\remaster_render.py", line 339, in model_load
state_dict = torch.load(model_path)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\serialization.py", line 1432, in load
with _open_file_like(f, "rb") as opened_file:
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\serialization.py", line 741, in _open_file_like
return _open_file(name_or_buffer, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\serialization.py", line 722, in __init__
super().__init__(open(name, mode))
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Program Files\\Hybrid\\64bit\\Vapoursynth\\Lib\\site-packages\\vsdeoldify\\remaster\\model\\remasternet.pth.tar'



RE: Deoldify Vapoursynth filter - Dan64 - 13.02.2025

As explained in: models-download

With the version 5.0 of HAVC has been added the model DeepRemaster, for using it is necessary to download the file remasternet.pth.tar (is not a tar, just a "pth" renamed as "pth.tar") and copy it in: ".\Lib\site-packages\vsdeoldify\remaster\model" (the path shown in the last row of your post).

otherwise you wait for the availability of new torch package in Hybrid with HAVC 5.0 (best option).


Dan


RE: Deoldify Vapoursynth filter - Selur - 13.02.2025

Will update dev when the Hybrid_deoldify is okay,...


RE: Deoldify Vapoursynth filter - Dan64 - 13.02.2025

did you have time to read the post  #1057

Dan


RE: Deoldify Vapoursynth filter - Selur - 13.02.2025

Yes, did you read my post after that,...