PRAGMA
22nd December 2020, 14:47
In pvsfunc I recently added a Class method to PDeinterlacer called VoidWeave.
https://github.com/rlaPHOENiX/pvsfunc/blob/master/pvsfunc/pdeinterlacer.py#L152
It simply makes every other row on each field a 255 (#ff) RGB green. From there, it can be used with VSGAN and an inpainting model to fill the green with what the model believes should be their based on the context of the neighboring pixels.
This is a single-field deinterlacer like sangnom.
You can see an example use of this with VSMPEG
https://github.com/rlaPHOENiX/VSMPEG
Example of this being used with an in-the-works model:
https://streamable.com/2df9ig
*This is 25i->50p, Bob deinterlace*
As you can see, the Intro really struggles for whatever reason, but the actual live action scenes are really darn nice.
The problems I've encountered so far is that when using a bob tactic (every even (2nd) field) needs to be vertically aligned and to do that I opted for putting a black 1px border on the top, and remove 1px row of pixels from the bottom. It works, but it's definitely not as good as whatever way QTGMC is doing it.
As you saw in the intro, it is also clear that its doing a per-field deinterlace too, you can see clear as day vertical information being missing on some of the angled lines.
I should note, depending on how you train the model for VSGAN, can go reall quick. In the model im testing it gets 9.4 fps on my i7-8700k + 1080ti
Any advice?
:)
https://github.com/rlaPHOENiX/pvsfunc/blob/master/pvsfunc/pdeinterlacer.py#L152
It simply makes every other row on each field a 255 (#ff) RGB green. From there, it can be used with VSGAN and an inpainting model to fill the green with what the model believes should be their based on the context of the neighboring pixels.
This is a single-field deinterlacer like sangnom.
You can see an example use of this with VSMPEG
https://github.com/rlaPHOENiX/VSMPEG
Example of this being used with an in-the-works model:
https://streamable.com/2df9ig
*This is 25i->50p, Bob deinterlace*
As you can see, the Intro really struggles for whatever reason, but the actual live action scenes are really darn nice.
The problems I've encountered so far is that when using a bob tactic (every even (2nd) field) needs to be vertically aligned and to do that I opted for putting a black 1px border on the top, and remove 1px row of pixels from the bottom. It works, but it's definitely not as good as whatever way QTGMC is doing it.
As you saw in the intro, it is also clear that its doing a per-field deinterlace too, you can see clear as day vertical information being missing on some of the angled lines.
I should note, depending on how you train the model for VSGAN, can go reall quick. In the model im testing it gets 9.4 fps on my i7-8700k + 1080ti
Any advice?
:)