diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-12 16:57:31 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-12 16:57:31 +0000 |
commit | a655e90fbe4b2f9574e163102ece4dad217ff6de (patch) | |
tree | 002c64a310e755db9dc6209d9c08ea601d145a65 /modules/ui.py | |
parent | 45e8fa0e07db0fe04f91fef070a02925a40c8354 (diff) | |
download | stable-diffusion-webui-gfx803-a655e90fbe4b2f9574e163102ece4dad217ff6de.tar.gz stable-diffusion-webui-gfx803-a655e90fbe4b2f9574e163102ece4dad217ff6de.tar.bz2 stable-diffusion-webui-gfx803-a655e90fbe4b2f9574e163102ece4dad217ff6de.zip |
add negative prompt to log when clicking save #249
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui.py b/modules/ui.py index c32c5096..535afaeb 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -93,7 +93,7 @@ def save_files(js_data, images): at_start = file.tell() == 0
writer = csv.writer(file)
if at_start:
- writer.writerow(["prompt", "seed", "width", "height", "sampler", "cfgs", "steps", "filename"])
+ writer.writerow(["prompt", "seed", "width", "height", "sampler", "cfgs", "steps", "filename", "negative_prompt"])
filename_base = str(int(time.time() * 1000))
for i, filedata in enumerate(images):
@@ -108,7 +108,7 @@ def save_files(js_data, images): filenames.append(filename)
- writer.writerow([data["prompt"], data["seed"], data["width"], data["height"], data["sampler"], data["cfg_scale"], data["steps"], filenames[0]])
+ writer.writerow([data["prompt"], data["seed"], data["width"], data["height"], data["sampler"], data["cfg_scale"], data["steps"], filenames[0], data["negative_prompt"]])
return '', '', plaintext_to_html(f"Saved: {filenames[0]}")
|