diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-11-02 04:02:45 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-11-02 04:02:45 +0000 |
commit | 55688c48806f9383f3a56f6b9a0ab8fbf205edd2 (patch) | |
tree | 1dc6609c477ef30c549e87867ac761580c15a49d /scripts/prompts_from_file.py | |
parent | 1a058ca578ca8cf94c47459828afaa63d16f6f72 (diff) | |
download | stable-diffusion-webui-gfx803-55688c48806f9383f3a56f6b9a0ab8fbf205edd2.tar.gz stable-diffusion-webui-gfx803-55688c48806f9383f3a56f6b9a0ab8fbf205edd2.tar.bz2 stable-diffusion-webui-gfx803-55688c48806f9383f3a56f6b9a0ab8fbf205edd2.zip |
rename the seed option from #4146
Diffstat (limited to 'scripts/prompts_from_file.py')
-rw-r--r-- | scripts/prompts_from_file.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/prompts_from_file.py b/scripts/prompts_from_file.py index 8d4911ae..d187cd9c 100644 --- a/scripts/prompts_from_file.py +++ b/scripts/prompts_from_file.py @@ -96,7 +96,7 @@ class Script(scripts.Script): def ui(self, is_img2img):
checkbox_iterate = gr.Checkbox(label="Iterate seed every line", value=False)
- checkbox_iterate_batch = gr.Checkbox(label="Preserve random seed across lines (for use with \"Generate Forever\")", value=False)
+ checkbox_iterate_batch = gr.Checkbox(label="Use same random seed for all lines", value=False)
prompt_txt = gr.Textbox(label="List of prompt inputs", lines=1)
file = gr.File(label="Upload prompt inputs", type='bytes')
@@ -138,7 +138,7 @@ class Script(scripts.Script): jobs.append(args)
print(f"Will process {len(lines)} lines in {job_count} jobs.")
- if ((checkbox_iterate or checkbox_iterate_batch) and p.seed == -1):
+ if (checkbox_iterate or checkbox_iterate_batch) and p.seed == -1:
p.seed = int(random.randrange(4294967294))
state.job_count = job_count
@@ -154,7 +154,7 @@ class Script(scripts.Script): proc = process_images(copy_p)
images += proc.images
- if (checkbox_iterate):
+ if checkbox_iterate:
p.seed = p.seed + (p.batch_size * p.n_iter)
|