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.

[HELP] How to delogo
#1
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.


Attached Files
.rar   test.rar (Size: 7,37 MB / Downloads: 18)
Reply
#2
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):
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


Attached Files Thumbnail(s)
   
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
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.
Reply
#4
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)
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
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?
Reply
#6
You would have to use a 'custom'-section import all requirements etc.
=> you are on your own on that.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#7
[Image: 686.png]

Hi selur,

How to fix this.

Using the same mask shared by you.


Attached Files
.rar   test.rar (Size: 9,97 MB / Downloads: 13)
Reply
#8
Did you try different settings?
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
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)