aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-01-13 11:44:39 +0000
committerGitHub <noreply@github.com>2023-01-13 11:44:39 +0000
commit3ad1fdd99b943c2c49855fec9fdbe25d674f17da (patch)
tree703d3f907ef9a7bf1d4e30f4a0db5eedce11ed9d
parent7bf3cfc427099184874b021208c52eece71b7eaa (diff)
parent88416ab5ff787eec3b9962b43b5e544bb75fbad6 (diff)
downloadstable-diffusion-webui-gfx803-3ad1fdd99b943c2c49855fec9fdbe25d674f17da.tar.gz
stable-diffusion-webui-gfx803-3ad1fdd99b943c2c49855fec9fdbe25d674f17da.tar.bz2
stable-diffusion-webui-gfx803-3ad1fdd99b943c2c49855fec9fdbe25d674f17da.zip
Merge pull request #6684 from space-nuko/save-extension-params-to-last-params
Fix extension parameters not being saved to last used parameters
-rw-r--r--modules/processing.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/processing.py b/modules/processing.py
index f04a0e1e..ae04cab7 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -531,16 +531,16 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
def infotext(iteration=0, position_in_batch=0):
return create_infotext(p, p.all_prompts, p.all_seeds, p.all_subseeds, comments, iteration, position_in_batch)
- with open(os.path.join(shared.script_path, "params.txt"), "w", encoding="utf8") as file:
- processed = Processed(p, [], p.seed, "")
- file.write(processed.infotext(p, 0))
-
if os.path.exists(cmd_opts.embeddings_dir) and not p.do_not_reload_embeddings:
model_hijack.embedding_db.load_textual_inversion_embeddings()
if p.scripts is not None:
p.scripts.process(p)
+ with open(os.path.join(shared.script_path, "params.txt"), "w", encoding="utf8") as file:
+ processed = Processed(p, [], p.seed, "")
+ file.write(processed.infotext(p, 0))
+
infotexts = []
output_images = []