From 691b56f1eadf82b592ad987f942a280b9b642dc3 Mon Sep 17 00:00:00 2001 From: emotion3459 <176516814+emotion3459@users.noreply.github.com> Date: Mon, 7 Oct 2024 00:53:53 -0400 Subject: [PATCH] Don't use gaussian weights for grain temporal averaging --- vsdeband/noise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsdeband/noise.py b/vsdeband/noise.py index 4aae476..76cf9fe 100644 --- a/vsdeband/noise.py +++ b/vsdeband/noise.py @@ -261,7 +261,7 @@ def _try_grain(src: vs.VideoNode, stre: tuple[float, float] = strength, **args: grained = _wrap_implementation(clip, True) if do_taverage: - average = grained.std.AverageFrames(BlurMatrix.GAUSS.from_radius(self.temporal_radius)) + average = grained.std.AverageFrames([1] * (self.temporal_radius * 2 + 1)) grained = grained.std.Merge(average, self.temporal_average) grained = grained[self.temporal_radius:-self.temporal_radius]