From 7851afc707cf340cafc35615ac6383be01c4e2d0 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 11 Jun 2026 08:15:12 +0000 Subject: [PATCH] Fix IP-Instruct crash in after() hook The framework passes the script's ui values positionally, but after() only accepted keyword args, so every run raised TypeError after processing and the original pipeline was never restored. Accept *args like sibling scripts. https: //claude.ai/code/session_014QWKWgKvMevcuvfCnsYoT2 Co-Authored-By: Claude --- scripts/ipinstruct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ipinstruct.py b/scripts/ipinstruct.py index b6ce43c96..c3b8206d7 100644 --- a/scripts/ipinstruct.py +++ b/scripts/ipinstruct.py @@ -106,7 +106,7 @@ class IPInstructScript(scripts_manager.Script): # p.extra_generation_params["IPInstruct"] = f'' return processed - def after(self, p: processing.StableDiffusionProcessing, processed: processing.Processed, **kwargs): # pylint: disable=unused-argument + def after(self, p: processing.StableDiffusionProcessing, processed: processing.Processed, *args): # pylint: disable=unused-argument if self.orig_pipe is not None: shared.sd_model = self.orig_pipe return processed