The following warnings occurred:
Warning [2] Trying to access array offset on null - Line: 198 - File: inc/plugins/google_seo.php PHP 8.3.12-nmm1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/google_seo.php 198 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 135 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Trying to access array offset on null - Line: 14 - File: inc/plugins/cookielaw.php(272) : eval()'d code PHP 8.3.12-nmm1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/cookielaw.php(272) : eval()'d code 14 errorHandler->error_callback
/inc/plugins/cookielaw.php 272 eval
/inc/class_plugins.php 142 cookielaw_global_intermediate
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Trying to access array offset on null - Line: 14 - File: inc/plugins/cookielaw.php(272) : eval()'d code PHP 8.3.12-nmm1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/cookielaw.php(272) : eval()'d code 14 errorHandler->error_callback
/inc/plugins/cookielaw.php 272 eval
/inc/class_plugins.php 142 cookielaw_global_intermediate
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once



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.

scratch removal
#1
Hi,
Any idea to remove the bottom scratch? Each clip at the end of the frame scratch exists.

https://pasteboard.co/nR0xQ2PL3Utd.png
Reply
#2
Since it's about an image: use an image editor and fill the line.

If it's a video, you should remove the problem before doing upscaling 2048x1556 seems like an upscaled resolution.

Looking at the separated YUV channels the scratch is only in the Y channel.
Share a sample and I can suggest something depending on the nature of the problem (depending on whether the line is static or not different approaches are possible)
Other than that:
a. you could write a custom script in which you:
1. downscale the source to a resolution where the line isn't visible
2. upscale to the original resolution
3. replace the line with the down- and upscaled version by masking it
b. with some masking something like Balanced Border, EdgeFixer or Bore might work.
c. if it's static: create a mask and use proPainter (or other inpainting methods), this will likely result in the best output, but is probably overkill at the current resolution.
Got a few ideas, but without an actual video they are probably not really helpful.
=> should be fixable, but will require some tweaking

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
Thanks for the reply.
This is a film scan sequence file. Not an image. These line occurs when a negative cutter make a bad tape joint 😄. This line is consistent with each clip end frame only. No entire clip. I am doing a feature film Restoration right now, and because of budget problem they are not going for Damiant / phoenix Restoration. I am doing color grading and some cleanup in Davinci. Davinci has revival tool to manually do inpaint where in it looks into previous frame and does inpaint. But the result is not that great.

Can't do upscale and loose information. In feature film Restoration every frame is a diamond!!!.

Was able to remove hairs and spots with spotless. If you could implement Deltarestore it would be great. Any other tips for this situation?
Reply
#4
Detarestore will not help with that scratch, it's basically a wrapper around Spotless to make it less destructive. (restore some moving parts)
Haven't seen anyone do a port for Vapoursynth or make it a proper script, even for Avisynth, so I wouldn't hold my breath for it to appear in Hybrid any time soon.
Got just the last frame in the native resolution? (normal Inpainting should work fine on this, but applying it on high resolution content is a pain, since you easily run out of memory.)

Cu Selur

Ps.: https://forum.doom9.org/showthread.php?t=184550 might be interessting
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
Quick test with inpainting through VSGAN, proPainter should be better, but for that resolution is too high:
# Imports
import vapoursynth as vs
import os
import sys
# getting Vapoursynth core
core = vs.core
# Import scripts folder
scriptPath = 'F:/Hybrid/64bit/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# Loading Plugins
core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/Support/libimwri.dll")
# Import scripts
import mvsfunc

# Loading C:\Users\Selur\Desktop\photo_1.png using vsImageReader
clip = core.imwri.Read(["C:/Users/Selur/Desktop/nR0xQ2PL3Utd.png"])
clip = core.std.Loop(clip=clip, times=100)
# Input color space is assumed to be RGB24

# resizing using VSGAN
from vsgan import ESRGAN
mask = core.imwri.Read(["C:/Users/Selur/Desktop/mask.png"])
mask = core.std.BinarizeMask(mask,threshold=16)
mask = core.std.Maximum(mask)
mask = core.std.Maximum(mask)
green = core.std.BlankClip(clip, color=[0,255,0])
clip = core.std.MaskedMerge(clip, green , mask) # masked clip

org = clip
vsgan = ESRGAN(clip=clip,device="cuda")
model = "F:/Hybrid/64bit/vsgan_models/1x_NMKD-YandereInpaint_375000_G.pth"
vsgan.load(model)
vsgan.apply()
clip = vsgan.clip

clip = core.std.StackHorizontal([org, clip])

# Output
clip.set_output()

[Image: grafik.png]
Not that good, but tunning multiple Inpainting calls with multiple masks probably would work even when using this inpainting model.

Another 1pass cv based inpainting examples using https://github.com/dnjulek/VapourSynth-cv_inpaint:
InpaintFSR:
[Image: Inpaint-FSR.png]
InpaintNS:
[Image: Inpaint-NS.png]
InpaintShiftMap:
[Image: Inpaint-Shiftmap.png]
InpaintTelea:
[Image: Inpaint-Telea.png]
like I wrote multiple inpainting passes with different masks will probably help more.

Cu Selur
Ps.: https://forum.doom9.org/showthread.php?t=184485 might also be interessting.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#6
Does this script help to remove the line?

https://silentaperture.gitlab.io/mdbook-...html#bbmod
Reply
#7
I doubt it, but bbmod=BalancedBorders in Hybrid, so you can try it yourself.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#8
Thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)