From ca93381de85abf2a3e2f70f30f5f567d2d6caa13 Mon Sep 17 00:00:00 2001 From: Tai An Date: Mon, 31 Aug 2026 20:19:56 -0700 Subject: [PATCH] fix(preSampling): make vae/pixels optional on samplerCustomSettings.ip2p (#1029) The latent-only call site passes neither vae nor pixels, so the IP2P guider raises TypeError whenever a latent is supplied instead of an image. samplerFull.ip2p in samplers.py already has the optional form. --- py/nodes/preSampling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/nodes/preSampling.py b/py/nodes/preSampling.py index 8034107..c9069c3 100644 --- a/py/nodes/preSampling.py +++ b/py/nodes/preSampling.py @@ -367,7 +367,7 @@ class samplerCustomSettings: FUNCTION = "settings" CATEGORY = "EasyUse/PreSampling" - def ip2p(self, positive, negative, vae, pixels, latent=None): + def ip2p(self, positive, negative, vae=None, pixels=None, latent=None): if latent is not None: concat_latent = latent else: