remove innacurate warning
parent
031aab350e
commit
b0b7b243ee
|
|
@ -274,7 +274,6 @@ class Script(scripts.Script):
|
||||||
# strip scripts that aren't yet supported and warn user
|
# strip scripts that aren't yet supported and warn user
|
||||||
packed_script_args: List[dict] = [] # list of api formatted per-script argument objects
|
packed_script_args: List[dict] = [] # list of api formatted per-script argument objects
|
||||||
# { "script_name": { "args": ["value1", "value2", ...] }
|
# { "script_name": { "args": ["value1", "value2", ...] }
|
||||||
incompat_list = []
|
|
||||||
for script in p.scripts.scripts:
|
for script in p.scripts.scripts:
|
||||||
if script.alwayson is not True:
|
if script.alwayson is not True:
|
||||||
continue
|
continue
|
||||||
|
|
@ -296,22 +295,11 @@ class Script(scripts.Script):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
# other scripts to pack
|
# other scripts to pack
|
||||||
args_script_pack = {}
|
args_script_pack = {title: {"args": []}}
|
||||||
args_script_pack[title] = {"args": []}
|
|
||||||
for arg in p.script_args[script.args_from:script.args_to]:
|
for arg in p.script_args[script.args_from:script.args_to]:
|
||||||
args_script_pack[title]["args"].append(arg)
|
args_script_pack[title]["args"].append(arg)
|
||||||
packed_script_args.append(args_script_pack)
|
packed_script_args.append(args_script_pack)
|
||||||
# https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111/issues/12#issuecomment-1480382514
|
# https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111/issues/12#issuecomment-1480382514
|
||||||
if Script.runs_since_init < 1:
|
|
||||||
incompat_list.append(title)
|
|
||||||
|
|
||||||
if Script.runs_since_init < 1 and len(incompat_list) >= 1:
|
|
||||||
m = "Distributed doesn't yet support:"
|
|
||||||
for i in range(0, len(incompat_list)):
|
|
||||||
m += f" {incompat_list[i]}"
|
|
||||||
if i < len(incompat_list) - 1:
|
|
||||||
m += ","
|
|
||||||
logger.warning(m)
|
|
||||||
|
|
||||||
# encapsulating the request object within a txt2imgreq object is deprecated and no longer works
|
# encapsulating the request object within a txt2imgreq object is deprecated and no longer works
|
||||||
# see test/basic_features/txt2img_test.py for an example
|
# see test/basic_features/txt2img_test.py for an example
|
||||||
|
|
@ -323,7 +311,6 @@ class Script(scripts.Script):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
del payload['script_args_value']
|
del payload['script_args_value']
|
||||||
|
|
||||||
|
|
||||||
payload['alwayson_scripts'] = {}
|
payload['alwayson_scripts'] = {}
|
||||||
for packed in packed_script_args:
|
for packed in packed_script_args:
|
||||||
payload['alwayson_scripts'].update(packed)
|
payload['alwayson_scripts'].update(packed)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue