Jaded-Encoding-Thaumaturgy/vs-denoise

DPIR overcrops when image is not mod 8

Closed this issue · 0 comments

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