mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user