From 76c1986234317c60c5da81351f9fe951e7c0c922 Mon Sep 17 00:00:00 2001 From: emotion3459 <176516814+emotion3459@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:27:36 -0400 Subject: [PATCH] Fix float graining --- vsdeband/noise.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/vsdeband/noise.py b/vsdeband/noise.py index 01afc30..8af098c 100644 --- a/vsdeband/noise.py +++ b/vsdeband/noise.py @@ -301,8 +301,6 @@ def _try_grain(src: vs.VideoNode, stre: tuple[float, float] = strength, **args: if self.neutral_out: merge_clip = grained.std.MakeDiff(grained)[0].std.Loop(grained.num_frames) else: - if clip.format.sample_type == vs.FLOAT: - grained = norm_expr(grained, ('x 0.5 -', ''), planes) merge_clip, grained = clip, clip.std.MergeDiff(grained, planes) if do_protect_chroma: