aboutsummaryrefslogtreecommitdiff
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-01-18 23:25:56 +0300
committerGitHub <noreply@github.com>2023-01-18 23:25:56 +0300
commita8322ad75b71d7805f717ca1e43bde7b637e0238 (patch)
treec80a7e73d99370f5df4ab7104d39648c955887d9 /modules/processing.py
parent43fd6eaab8231f68c314b6d4fa41e2ca19582310 (diff)
parent5e15a0b422981c0b5484885d0b4d28af6913c76f (diff)
Merge pull request #6854 from EllangoK/master
Saves Extra Generation Parameters to params.txt
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 8c18ac53..a3e9f709 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