Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
23rd November 2021, 15:21 | #261 | Link | ||
Banana User
Join Date: Sep 2008
Posts: 985
|
Quote:
Quote:
Code:
# val "mask" : File based mask: # Full path to the base mask of the logo, a B/W picture (Logo -> white).
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
||
23rd November 2021, 23:48 | #262 | Link |
Registered User
Join Date: Apr 2013
Posts: 346
|
Thanks for the response. I wasn’t expecting it.
I did see the “B/W picture (Logo -> white)” in the manual, but didn’t realize that it was code for: “create a black base with the logo painted white.” I suggest changing that code to the plain-English version I just posted, or something similarly clear. When I read the manual, where it says “B/W picture” I assumed that a B/W picture (black and white as opposed to color) was to be used. Here is an example of a “B/W picture”: https://postimg.cc/jwQyP4gB. This is how I discovered that InpaintDelogo works using that as the “C:\mymask.bmp”. Where I had only a color image, I assumed that Greyscale() could be employed to create the “B/W picture.” I had no idea what “(Logo -> white)” meant. I do now. I’m not worried about the Automask-generated black base showing as blue in my image editor. I now know that the base should be black if I use Automask and can deal with that. I’m also not worried about the Automask feature, since I won’t be using it. If you are asking, for your own benefit, for examples, to see how it fails on my videos, I’ll be happy to provide examples. However, it seems that Automask is an unreliable method for sufficiently covering a logo, from what I’ve read by other posters confirming my own experience with it. So, I’m happy just making my own manual masks. What I had an interest in knowing, as per my previous post, is whether or not, in your opinion, using the base without any solid color, such as in the link posted above, presents any problem in your mind. I suspect that you may have been unaware that InpaintLogo does work on a video without needing a black base, much like VDubs DeLogo. As an example; when I take the image in that link, above, and paint the logo white, and then use that in the “C:\mymask.bmp”, it seems to perform exactly as compared to when I make a black base. My reason for doing this is to simply save time in mask creation. Last edited by Danette; 23rd November 2021 at 23:52. |
24th November 2021, 13:13 | #263 | Link |
Banana User
Join Date: Sep 2008
Posts: 985
|
That's a greyscale image in your example, if you have no idea what something means then you need to ask on forum. I'll change it in the manual to be more specific.
I'm fully aware how InpaintDelogo works, of course images with random colors supplied as masks can have problems. If something seems to work doing against instructions that's called a foolproof design. Looks like I need to change that too. Can you generate and show a mask with Automask from video in that example you've posted, and one you made with editor?
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
25th November 2021, 19:26 | #264 | Link | |
Banana User
Join Date: Sep 2008
Posts: 985
|
Quote:
Then I tried Automask on one frame example you have shared. Works well for me: Mask from Automask: Delogo:
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; 6th December 2021 at 00:52. |
|
26th November 2021, 15:02 | #265 | Link | |||
Registered User
Join Date: Apr 2013
Posts: 346
|
Quote:
No need to pursue this aspect further, as I think we are going in circles, needlessly, in doing so. Quote:
The script I used is this: Quote:
The image labeled “BW Editor Manual Mask” is the mask I created with my image editor and it works perfectly when used in InpaintDelogo processing. Note that this image is not a black base. It is what I would do with VDubs DeLogo, but using a white mask instead of red. Again, don’t make adjustments for my sake. I am content making manual masks (it’s faster and better). However, if you want additional tests from me, I’ll be happy to help. Last edited by Danette; 26th November 2021 at 15:05. |
|||
26th November 2021, 16:30 | #266 | Link | |
Banana User
Join Date: Sep 2008
Posts: 985
|
Quote:
So you have selected the wrong method for your task. Are words from the manual not clear about this: "doesn't produce good results"? Btw, in v2.0[WIP] there are new smart auto Analyze modes, actually I deleted all old Analyze code, the manual analysis modes too. Dunno, maybe I need to return manual modes, hard to decide without checking stuff in practice. EDIT: OK, I decided to return them. But as old manual and new auto Analysis stuff is not intercompatible then dunno when it will be released...
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; 5th December 2021 at 15:11. |
|
26th November 2021, 17:34 | #267 | Link | |
Registered User
Join Date: Apr 2013
Posts: 346
|
Quote:
Yes, "doesn't produce good results" does mean something. It means it may or may not work. From my viewpoint, why spend the time with Automask when I can just make a manual mask, in a fraction of the time, that is guaranteed to work. Who knows, maybe the new smart auto Analyze modes would not be prone to this variability, but I just don’t see the value in it. You have a great code, overall. By being able to get a good, simple, delogo function in Avisynth script, you've given us a great time savings over having to run it through Vdub. My suggestion is to not get hung-up on the Automask issue. I much prefer your earlier comments regarding the idea to incorporate all masks into one file or, maybe, incorporating what wonkey_monkey may be on the verge of delivering. |
|
4th December 2021, 22:16 | #268 | Link |
Banana User
Join Date: Sep 2008
Posts: 985
|
Harder, Better, Faster, Stronger v2.0:
Code:
# Version 2.0 : 2021/12/04. AviSynth+ v3.7.1 or later & FrameSel plugin is required. # New: Old Deblend delogo is superceded by the new superior one. # New: Smart frames selection for analyze using "AnalyzeTh" & "NoBorderAt" parameters. # New: "Automask" adapted to the new stuff and it doesn't reanalyze when "aMix" is adjusted. # New: "Show" 7/8/9. # Note: Old Deblend is saved as negative "Analyze", # -3/-4 should be same as old, -1/-2 were augmented by the smart frames selection. So here are some comparisons on such one. x3 upsized, no PP (except last one): Top row: Original logo & rm_logo/InpaintFunc Bottom row: InpaintDelogo old, InpaintDelogo v2.0 & InpaintDelogo v2.0 with default dPP=3, Interp=2 As there are less artifacts then maybe I'll lower PP defaults (btw, for anime Interp shouldn't be used, maybe maximum 1). Some other before/after frames (no PP): Old Automask & new Automask: And benchmarks (video: 720p , H264, 00:18:25): Code:
Automask (old) - 00:01:50 Automask (v2.0) - 00:01:37 Analyze old - 00:03:36 Analyze (v2.0) - 00:02:52 Deblend old - 196 FPS Deblend (v2.0) - 352 FPS
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
6th December 2021, 01:43 | #269 | Link |
Banana User
Join Date: Sep 2008
Posts: 985
|
I was asked to make comparison to "lgd", so here it's: Left InpaintDelogo & right Makki's lgd:
Code:
Good frames found (Threshold 30) & analysis time: ID v2.0: 10643 frames - 00:02:52 LGD: 7647 frames - 00:05:02 Benchmark: Deblend ID v2.0 - 352 FPS Deblend LGD - 380 FPS But, it's simple logo and Makki's delogo can do only simple logos, enough to move logo to the frame's border or letterbox and it fails to do proper analysis: Forget about color and variable transparency logos with lgd. Here is InpaintDelogo v2.01 on my delogotest sample: Download DelogoTest video for delogo tests, and ID v2.01 command: Code:
InpaintDelogo( mask="D:\mask.bmp", Automask=0, aMix=-1, Loc="10,16,-6,-20", Mode="Both", Analyze=3, Interp=0, oTune=-10)
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; 6th December 2021 at 13:03. |
10th December 2021, 22:16 | #270 | Link |
Banana User
Join Date: Sep 2008
Posts: 985
|
Code:
# Version 2.02 : 2021/12/10. Fixed: "Analyze=1" bug. # +11% deblend speed-up. # Tweaked "aMix". "Analyze=2" is default. Adaptive "AnalyzeTh" default [16 or 30]. # Don't search frames for analyse if 'txt' file is present and ReAnalyze=0. # Version 2.01 : 2021/12/05. "Analyze" 3 option.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; 10th December 2021 at 22:36. |
12th December 2021, 18:31 | #272 | Link |
Banana User
Join Date: Sep 2008
Posts: 985
|
All versions from v1.24 are on GitHub:
https://github.com/Purfview/InpaintD...intDelogo.avsi Two buttons at the right side there will bring you to "that" version.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
12th December 2021, 19:49 | #273 | Link |
Registered User
Join Date: Oct 2021
Posts: 11
|
Thank you for answer i've downloaded v1.48 avsi file.
Edit: I've install Gimport, but still can not call InpaintDelogo Function inside AvsPmod LoadCPlugin("C:\Program Files (x86)\AviSynth\plugins\AVSInpaint.dll") GImport("C:\Program Files (x86)\AviSynth\plugins\InpaintDelogo.avs") Update: I'm able to use function by typed it manually in AvsPmod, I saw it did good with static logo, could InpaintDelogo help delogo which is moving/ has faded away slowly effect? Last edited by quochuyonnet; 12th December 2021 at 20:25. |
12th December 2021, 20:38 | #274 | Link |
Registered User
Join Date: Oct 2021
Posts: 11
|
Do you've any idea to deal with this moving logo?
https://youtu.be/5ZKuJJaqCDE |
12th December 2021, 22:56 | #275 | Link |
Banana User
Join Date: Sep 2008
Posts: 985
|
For parts where logo is static but "fades away" use "Inpaint" mode. For moving parts you can try one of dynamic methods.
Share sample of original video.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
13th December 2021, 15:55 | #276 | Link |
Registered User
Join Date: Dec 2021
Posts: 6
|
Hi !
Thanks VoodooFX for you great work ! Version 1.48 was working good but every time I try to load the v2.02 with MeGUI, I have an error : I have all the requirements, up to date : I'm using ffms2 to load my source video Thanks for your help Last edited by Inolga; 13th December 2021 at 16:03. |
13th December 2021, 17:10 | #277 | Link | |
Banana User
Join Date: Sep 2008
Posts: 985
|
Quote:
Try AvS+ v3.7.1 test build 34 https://forum.doom9.org/showthread.p...25#post1958925 What is masktools2 version? Post your full script and the mask file.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; 13th December 2021 at 17:16. |
|
13th December 2021, 17:21 | #278 | Link |
Registered User
Join Date: Oct 2021
Posts: 11
|
this is original video which i've used for test delogo has moving and fades away effect.
https://youtu.be/sQvmLppMU_s |
13th December 2021, 17:33 | #279 | Link | |
Banana User
Join Date: Sep 2008
Posts: 985
|
Quote:
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
|
13th December 2021, 17:44 | #280 | Link |
Registered User
Join Date: Oct 2021
Posts: 11
|
yes, it's only a small clip i've used for testing delogo has moving effect. Here is another host
https://ufile.io/ra46waxn p/s: i've tried "dynamic mask" as a crop clip with resolution same as "Loc" area, but got "Crop: Destination width is 0 or less (C:\...Inpaintdelogo.avs, line 1296)" error. Last edited by quochuyonnet; 13th December 2021 at 17:48. |
Tags |
delogo, hardsubs, ocr, remove, watermark |
Thread Tools | Search this Thread |
Display Modes | |
|
|