aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorEllangoK <ellangok@bxscience.edu>2023-01-17 16:42:44 +0000
committerEllangoK <ellangok@bxscience.edu>2023-01-17 16:42:44 +0000
commit5e15a0b422981c0b5484885d0b4d28af6913c76f (patch)
treec1dd857be5ad1996cffb5adb44f7a2259203de25 /modules/processing.py
parent38b7186e6e3a4dffc93225308b822f0dae43a47d (diff)
downloadstable-diffusion-webui-gfx803-5e15a0b422981c0b5484885d0b4d28af6913c76f.tar.gz
stable-diffusion-webui-gfx803-5e15a0b422981c0b5484885d0b4d28af6913c76f.tar.bz2
stable-diffusion-webui-gfx803-5e15a0b422981c0b5484885d0b4d28af6913c76f.zip
Changed params.txt save to after manual init call
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 9c3673de..4a1f033e 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -538,10 +538,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
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 = []
@@ -572,6 +568,10 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
with devices.autocast():
p.init(p.all_prompts, p.all_seeds, p.all_subseeds)
+ 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 state.job_count == -1:
state.job_count = p.n_iter