Selur's Little Message Board

Full Version: Deoldify Vapoursynth filter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Updated Hybrid_deoldify, it should now disable and exclude the parameters.

Cu Selur
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
Uploaded a new Hybrid_deoldify.

Cu Selur
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,

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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'
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
Will update dev when the Hybrid_deoldify is okay,...
did you have time to read the post  #1057

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