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 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-06-11 08:15:12 +00:00
committed by QualiaRain
parent 00eff5e803
commit 7851afc707
+1 -1
View File
@@ -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