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

Wow! vs-realesrgan v5.1.0 is much faster.
On my PC with RTX3060 the speed increased from 12.95 fps to 30.38 fps (num_streams=3, num_batches=1) an increase of about 2.3x.

With num_batches=2 (num_streams must be =1 to improve the num_batches performance) the speed increased to 34.15 an increase of about 2.6x.
Probably due to my poor GPU I don't have observed any advantege in using num_batches > 2.

In any case it is an incredible result, with this speed it is possible to perform the resize with RealESRGAN in real-time.
I remember the times where the resizing speed of RealESRGAN was about 3/4 fps.

Dan


P.S.
Using the version 5.1.0 is displayed the following message:

Unable to import quantization op. Please install modelopt library (https://github.com/NVIDIA/TensorRT-Model-Optimizer?tab=readme-ov-file#installation) to add support for compiling quantized models


RE: Deoldify Vapoursynth filter - Selur - 16.12.2024

Using the version 5.1.0 is displayed the following message:

Unable to import quantization op. Please install modelopt library (https://github.com/NVIDIA/TensorRT-Model...stallation) to add support for compiling quantized models
=> you would have to ask HolyWu about that. (got everything installed that was listed in README)

Cu Selur


RE: Deoldify Vapoursynth filter - Dan64 - 17.12.2024

(16.12.2024, 22:28)Selur Wrote:
Using the version 5.1.0 is displayed the following message:

Unable to import quantization op. Please install modelopt library (https://github.com/NVIDIA/TensorRT-Model...stallation) to add support for compiling quantized models
=> you would have to ask HolyWu about that. (got everything installed that was listed in README)

issue open: https://github.com/HolyWu/vs-realesrgan/issues/31


Dan

EDIT:
HolyWu answer: None of ModelOpt's functionality is used so you can safely ignore that message.


RE: Deoldify Vapoursynth filter - Dan64 - 26.12.2024

(10.12.2024, 18:39)hallomanbh Wrote: HI

ImportError: DLL load failed while importing spatial_correlation_sampler_backend: The specified procedure could not be found.
....
....
import spatial_correlation_sampler_backend as correlation
ImportError: DLL load failed while importing spatial_correlation_sampler_backend: The specified procedure could not be found.

Try to install the spatial correlation package: spatial_correlation_sampler-0.5.0-py312-cp312-win_amd64_torch-2.6.0.dev20241101+cu124.whl.zip
You need to extract the content of the archive in ".\Hybrid\64bit\Vapoursynth\Lib\site-packages" and override the files previously installed by Hybrid.


Hello Selur,

  the spatial_correlation_sampler available in the last torch package is wrong is the spatial_correlation_sampler-0.5.0-py312-cp312-win_amd64_torch-2.5.0.dev20240707+cu124, that is not compatible with torch-2.6.0.dev20241109. The correct version in available in the last torch package, but is installed in the wrong location ".\Vapoursynth" instead of ".\Vapoursynth\Lib\site-packages\". 
  Please fix it.

Dan

P.S.
I also provided the link to the correct version in the answer to "hallomanbh"


RE: Deoldify Vapoursynth filter - hallomanbh - 27.12.2024

spatial_correlation_sampler_backend 

yes replaced with new files . working without errors . i will try Exemplar Models " ColourMNet " with Ref Frames. thankyou Smile


RE: Deoldify Vapoursynth filter - hallomanbh - 27.12.2024

[Image: colorize.jpg]


RE: Deoldify Vapoursynth filter - Selur - 27.12.2024

Quote:The correct version in available in the last torch package, but is installed in the wrong location ".\Vapoursynth" instead of ".\Vapoursynth\Lib\site-packages\".
Updated the torch-addon to fix this.


RE: Deoldify Vapoursynth filter - Dan64 - 27.12.2024

(3 hours ago)hallomanbh Wrote: [Image: colorize.jpg]

You need to set the method "HAVC + RF same as video" but in my opinion better results are obtained using "HAVC + RF different from video" as shown in the pictures below

[Image: attachment.php?aid=2843]

[Image: attachment.php?aid=2844]

Dan

(12.11.2024, 19:51)Dan64 Wrote: Hello Selur,

  I noted that you removed the flag "Reference Frames only".

  [Image: attachment.php?aid=2824]

  I know the reasons for the removal, but this flag is useful for a more advanced colouring process.
  I understand that this filter is quite complex to use, this complexity is also due to the fact that Hybrid is suitable mainly for advanced users.
  I'm planning to write a Colouring Guide for using HAVC in Hybrid to simplify the usage of this filter and reduce its complexity.
  Allowing people with no experience of Vapoursynth and Hybrid to use HAVC.  
  In order to simplify the usage to people with little knowledge of Vapoursynth it will be very useful if you can introduce again in Hybrid the flag "Reference Frames only".
  This flag should be enabled when "Ref FrameDir" is set (not empty).

Thanks,
Dan

Hello Selur,

  in my previous post #773 I asked you the possibility to re-add the option "Reference frames only", but never answered to my post.
  I think that now there is a lot of room in the GUI for adding this option.
I also noted that once the field "Ref FrameDir" is set, there is not way to clear it (set it to null), could add this feature ?

Thanks,
Dan

(3 hours ago)Selur Wrote:
Quote:The correct version in available in the last torch package, but is installed in the wrong location ".\Vapoursynth" instead of ".\Vapoursynth\Lib\site-packages\".
Updated the torch-addon to fix this.

  Now is working!

Thanks,
Dan