From 1121fa5fbf2fe69150a796e67dc9e53631bff4c5 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 4 Nov 2023 20:39:57 +0900 Subject: [PATCH] fix: prevent the accumulation of model patches when 'xy_capsule' is used only for 'x' --- efficiency_nodes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/efficiency_nodes.py b/efficiency_nodes.py index 8ae6d01..bfca9fe 100644 --- a/efficiency_nodes.py +++ b/efficiency_nodes.py @@ -1503,9 +1503,11 @@ class TSC_KSampler: elif X_type != "Nothing" and Y_type != "Nothing": for Y_index, Y in enumerate(Y_value): - if Y_type == "XY_Capsule" and X_type == "XY_Capsule": + if Y_type == "XY_Capsule" or X_type == "XY_Capsule": model, clip, refiner_model, refiner_clip = \ clone_or_none(original_model, original_clip, original_refiner_model, original_refiner_clip) + + if Y_type == "XY_Capsule" and X_type == "XY_Capsule": Y.set_x_capsule(X) # Define Y parameters and generate labels