diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-18 20:25:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 20:25:56 +0000 |
commit | a8322ad75b71d7805f717ca1e43bde7b637e0238 (patch) | |
tree | c80a7e73d99370f5df4ab7104d39648c955887d9 /modules/processing.py | |
parent | 43fd6eaab8231f68c314b6d4fa41e2ca19582310 (diff) | |
parent | 5e15a0b422981c0b5484885d0b4d28af6913c76f (diff) | |
download | stable-diffusion-webui-gfx803-a8322ad75b71d7805f717ca1e43bde7b637e0238.tar.gz stable-diffusion-webui-gfx803-a8322ad75b71d7805f717ca1e43bde7b637e0238.tar.bz2 stable-diffusion-webui-gfx803-a8322ad75b71d7805f717ca1e43bde7b637e0238.zip |
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.py | 8 |
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
|