Selur's Little Message Board

Full Version: How to delogo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Selur,

I am new to delogo. Can you guide how to delogo a video using hybrid? 

Can you suggest Which filter is better for delogo? inpaint delogo or pro painter?

Attached one sample clip.

How to create a mask? Extracting one frame out of the video and Highlighting areas which need to be removed as white and rest of the areas as black. right?

How to get mask region?

Can you help please.
Quote: Can you suggest Which filter is better for delogo? inpaint delogo or pro painter?
No clue which is better. Hybrid only has ProPainter. Smile

Quote: How to create a mask? Extracting one frame out of the video and Highlighting areas which need to be removed as white and rest of the areas as black. right?
Correct, like you wrote. The resolution of the screenshot should be the same as the video at the position where you apply ProPainter.

Quote: How to get mask region?
The mask region defines the 2D region in which ProPainter can search for references and has a minium resolution of 256x256.
Usually you would look at the Vapoursynth Preview and the enable debug option of ProPainter and then adjust the region to:
a. include the part you want to remove
b. include enough data around it so ProPainter can find information for the removal (usually a small region is enough)

Using (just ProPainter no cleaning etc. with the attached mask):
Code:
clip = ProPainter(clip=clip, img_mask_path="C:/Users/Selur/Desktop/mask.png", length=500, mask_region=(256,256,380,0))
I got:
[Image: grafik.png]
[Image: grafik.png]
[Image: grafik.png]
[Image: grafik.png]
[Image: grafik.png]
script used: https://pastebin.com/ftLQGNE8

Cu Selur
Oh, i did almost the same. then it looks like pro painter is not working for me.

Initially it shows error of missing files like raft-things.pth, recurrent_flow_completion.pth etc

So i added them manually from github.

Now preview looks blank.

Can you help me to fix it.
Quote:Initially it shows error of missing files like raft-things.pth, recurrent_flow_completion.pth etc

So i added them manually from github.
I too, noticed I forgot to add them to the latest torch addon. Smile (uploading a new torch download where I included the files, but that will take a while to be up)

Quote:Now preview looks blank.
My guess is, it's either a driver/support or a memory problem:
  • a lowering 'Length'
  • different 'FP16' setting
  • difference 'Interference'

Cu Selur
Ps.: playing around (script,clip)
Thanks.

Finally working after lowering "Length".

But the lines behind the logo is not straight after delogoing.

What about inpaint delogo filter. https://github.com/Purfview/InpaintDelogo

How to use that in hybrid?
You would have to use a 'custom'-section import all requirements etc.
=> you are on your own on that.
[Image: 686.png]

Hi selur,

How to fix this.

Using the same mask shared by you.
Did you try different settings?
Code:
clip = ProPainter(clip=clip, img_mask_path="C:/Users/Selur/Desktop/mask.png", neighbor_length=5, ref_stride=5, mask_region=(256,256,380,0), sc_threshold=0.15)
[Image: grafik.png]
or clear your source before delogo, using BasicVSR++ before ProPaint I got:
[Image: grafik.png]


Cu Selur