Jaded-Encoding-Thaumaturgy / vs-denoise

VapourSynth denoising, regression, and motion compensation functions
MIT License
18 stars 6 forks source link

DPIR overcrops when image is not mod 8 #104

Closed Mikewando closed 3 months ago

Mikewando commented 8 months ago
from vstools import vs, set_output, padder
from vsdenoise import dpir

clip = vs.core.std.BlankClip(width=720, height=536, format=vs.YUV444PS)
clip = clip.std.AddBorders(top=2, bottom=2, color=[1.0, 0.0, 0.0])
good = dpir.DEBLOCK(padder.MIRROR(clip, top=2, bottom=2), 80, i444=True).std.Crop(top=2, bottom=2)
set_output(good)
bad = dpir.DEBLOCK(clip, 80, i444=True)
set_output(bad)

Good: image Bad: image