This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

ProPainter Vapoursynth filter
#61
(31.05.2024, 21:24)zspeciman Wrote: That is an interesting project, lets see what can be done with this clip

ProPainter filter worked quite well.

You can see a glitch at the 8 second position.

Dan


Attached Files
.zip   chantent_no_logo.zip (Size: 2,79 MB / Downloads: 25)
Reply
#62
That is AMAZING!!!  I had no idea what to expect, but nothing this good. How long does it take to remove the logo?
Reply
#63
I included the encoding report, on my RTX 3060, the avg inference speed was about 3.11 fps.
The trick is to use the mask region, to lower the size of the frame. In this case I used a mask 420x300.
Without the mask removing a mask from a 1080p movie will be almost impossible.
 
Maybe by increasing the Mask Dilation to 16 could remove the glitch. 
I also attached the script used.

On Selur's GoogleDrive there is a folder called experimental that can be used to test ProPainter.

To use it:

1) Copy your Hybrid installation in another folder, for example Hybrid.R68
2) Delete the folder Vapoursynth under Hybrid.R68\64bit
3) Extract the content of the archive: VapoursynthR68_propainter_test_setup.7z in Hybrid.R68\64bit
4) Extract the content of archive: Hybrid_propainter_test.zip in Hybrid.R68 and override the file Hybrid.exe

Dan

P.S.
You can find the ProPainter filter under Filtering->Vapoursynth->Other (the last filer of panel)
You can find some explanation on the parameters at: https://github.com/dan64/vs-propainter
Reply
#64
To test whether this is a scene change problem (which I suspected), I encoded 0-173 and 174-522. (522 should be 521)
I then noticed I forgot to add ProPainter to ApplyOnlyto,.. Angel
Will add it an test, whether this could be done with it in one go.
In general adding an option to check for scene changes and not go over scene changes might be a good addition to the filter. (I could also add this in Hybrid, but I think this might be something useful to the filter itself.)

Cu Selur

Ps.: no ApplyOnlyTo, is not solution, it does not 'cut' internally. (thus the result is the same as when the filter is applied to the whole clip, which would have been clear if I just had read https://github.com/Irrational-Encoding-W...emapFrames again Wink)


Attached Files
.zip   scene_0_173.zip (Size: 4,72 MB / Downloads: 15)
.zip   scene_174_522.zip (Size: 8,35 MB / Downloads: 14)
Reply
#65
Nice discovery! 
I will add the scene change detection in the next release. 
Near the end of the clip is (a little) visible the logo mask (almost transparent), maybe it will be necessary also increase the Mask dilation.

Dan
Reply
#66
Quote:I will add the scene change detection in the next release.
Nice! Looking forward to it.
For the scene detection (https://github.com/dubhater/vapoursynth-scxvid or https://github.com/dubhater/vapoursynth-wwxd could be used).

Quote:Near the end of the clip is (a little) visible the logo mask (almost transparent), maybe it will be necessary also increase the Mask dilation.
Yeah, I think so too. Smile

Cu Selur
Reply
#67
(04.06.2024, 19:34)Selur Wrote:
Quote:I will add the scene change detection in the next release.
Nice! Looking forward to it.
For the scene detection  (https://github.com/dubhater/vapoursynth-scxvid or https://github.com/dubhater/vapoursynth-wwxd could be used).

The code is 10 year old. I don't expect anything "revolutionary".

I will use the good old one MiscFilters.dll included in Vapoursynth.
I had the possibility to deeply test it for the HAVC development and I'm quite satisfied.

Dan
Reply
#68
Quote:I had the possibility to deeply test it for the HAVC development and I'm quite satisfied.
👍

Cu Selur
Reply
#69
Hello Selur

   I released version 1.1.0 with scene detection: https://github.com/dan64/vs-propainter/r...tag/v1.1.0

  Let me know if is working for you.

  I noted that the capability of the filter of reconstructing the portion of image hidden by the logo depends also on the length of the batch of frames used for the inference.

  Here a comparison on frame 174: https://imgsli.com/MjcwMTMy

It seems that a length between 80 and 120 provides satisfactory results

Dan
Reply
#70
Seems to work fine.
Updated the test download.

Cu Selur
Reply


Forum Jump:


Users browsing this thread: 34 Guest(s)