mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-08 19:40:33 -08:00
fixes for B007
This commit is contained in:
parent
550256db1c
commit
a5121e7a06
28 changed files with 57 additions and 62 deletions
|
|
@ -66,9 +66,9 @@ class ScriptPostprocessingRunner:
|
|||
def initialize_scripts(self, scripts_data):
|
||||
self.scripts = []
|
||||
|
||||
for script_class, path, basedir, script_module in scripts_data:
|
||||
script: ScriptPostprocessing = script_class()
|
||||
script.filename = path
|
||||
for script_data in scripts_data:
|
||||
script: ScriptPostprocessing = script_data.script_class()
|
||||
script.filename = script_data.path
|
||||
|
||||
if script.name == "Simple Upscale":
|
||||
continue
|
||||
|
|
@ -124,7 +124,7 @@ class ScriptPostprocessingRunner:
|
|||
script_args = args[script.args_from:script.args_to]
|
||||
|
||||
process_args = {}
|
||||
for (name, component), value in zip(script.controls.items(), script_args):
|
||||
for (name, component), value in zip(script.controls.items(), script_args): # noqa B007
|
||||
process_args[name] = value
|
||||
|
||||
script.process(pp, **process_args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue