mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-21 21:22:13 -03:00
fix: prevent the accumulation of model patches when 'xy_capsule' is used only for 'x'
This commit is contained in:
@@ -1503,9 +1503,11 @@ class TSC_KSampler:
|
|||||||
elif X_type != "Nothing" and Y_type != "Nothing":
|
elif X_type != "Nothing" and Y_type != "Nothing":
|
||||||
for Y_index, Y in enumerate(Y_value):
|
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 = \
|
model, clip, refiner_model, refiner_clip = \
|
||||||
clone_or_none(original_model, original_clip, original_refiner_model, original_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)
|
Y.set_x_capsule(X)
|
||||||
|
|
||||||
# Define Y parameters and generate labels
|
# Define Y parameters and generate labels
|
||||||
|
|||||||
Reference in New Issue
Block a user