From 3275b332f3097f5d076d33deceba9629a570e4ee Mon Sep 17 00:00:00 2001 From: Kijai <40791699+kijai@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:59:26 +0300 Subject: [PATCH] clamp ColorToMask --- nodes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nodes.py b/nodes.py index cf1d5b2..fdef63f 100644 --- a/nodes.py +++ b/nodes.py @@ -1036,6 +1036,7 @@ controls the number of images processed at once. pbar.update(batch_count) tensors_out = torch.cat(tensors_out, dim=0) + tensors_out = torch.clamp(tensors_out, min=0.0, max=1.0) return tensors_out, class ConditioningMultiCombine: @@ -4965,7 +4966,6 @@ If no image is provided, mode is set to text-to-image if model != "sd3-turbo": data["negative_prompt"] = n_prompt - headers={ "accept": "image/*" } @@ -5081,8 +5081,6 @@ class WeightScheduleConvert: "default": 'list' }), }, - - } RETURN_TYPES = ("FLOAT",) FUNCTION = "execute"