From 4a879dc6a2f9feca9b7b1ae21602b09cb1307f45 Mon Sep 17 00:00:00 2001 From: DepFA <35278260+dfaker@users.noreply.github.com> Date: Tue, 27 Sep 2022 18:52:36 +0100 Subject: [PATCH] Revert Script changes --- modules/scripts.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/modules/scripts.py b/modules/scripts.py index 93170669..9ef87563 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -55,12 +55,6 @@ class Script: # your description as the value. def describe(self): return "" - - # If your script is only compatible with a subset of samplers, return the sampler - # names here, an empty list indicates compatibility with all samplers, for a full - # listing of current sampler names import modules.sd_samplers.samplers - def compatible_samplers(self): - return [] scripts_data = [] @@ -137,11 +131,7 @@ class ScriptRunner: for control in controls: control.custom_script_source = os.path.basename(script.filename) control.visible = False - - concat_compatible_samplers = ",".join(script.compatible_samplers()) - inputs += [gr.HTML(value=''.format(concat_compatible_samplers))] - inputs[-1].visible=False - + inputs += controls script.args_to = len(inputs) @@ -189,7 +179,7 @@ class ScriptRunner: if script is None: return None - script_args = args[script.args_from+1:script.args_to] + script_args = args[script.args_from:script.args_to] processed = script.run(p, *script_args) shared.total_tqdm.clear()