fix format issue
This commit is contained in:
parent
d05f9e8124
commit
91560e98c4
|
@ -418,7 +418,6 @@ class Api:
|
||||||
task_id = txt2imgreq.force_task_id or create_task_id("txt2img")
|
task_id = txt2imgreq.force_task_id or create_task_id("txt2img")
|
||||||
|
|
||||||
script_runner = scripts.scripts_txt2img
|
script_runner = scripts.scripts_txt2img
|
||||||
|
|
||||||
with self.txt2img_script_arg_init_lock:
|
with self.txt2img_script_arg_init_lock:
|
||||||
if not script_runner.scripts:
|
if not script_runner.scripts:
|
||||||
script_runner.initialize_scripts(False)
|
script_runner.initialize_scripts(False)
|
||||||
|
@ -489,7 +488,6 @@ class Api:
|
||||||
mask = decode_base64_to_image(mask)
|
mask = decode_base64_to_image(mask)
|
||||||
|
|
||||||
script_runner = scripts.scripts_img2img
|
script_runner = scripts.scripts_img2img
|
||||||
|
|
||||||
with self.img2img_script_arg_init_lock:
|
with self.img2img_script_arg_init_lock:
|
||||||
if not script_runner.scripts:
|
if not script_runner.scripts:
|
||||||
script_runner.initialize_scripts(True)
|
script_runner.initialize_scripts(True)
|
||||||
|
|
Loading…
Reference in New Issue