Skip to content

Commit 55688c4

Browse files
committed
rename the seed option from #4146
1 parent 1a058ca commit 55688c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/prompts_from_file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def title(self):
9696

9797
def ui(self, is_img2img):
9898
checkbox_iterate = gr.Checkbox(label="Iterate seed every line", value=False)
99-
checkbox_iterate_batch = gr.Checkbox(label="Preserve random seed across lines (for use with \"Generate Forever\")", value=False)
99+
checkbox_iterate_batch = gr.Checkbox(label="Use same random seed for all lines", value=False)
100100

101101
prompt_txt = gr.Textbox(label="List of prompt inputs", lines=1)
102102
file = gr.File(label="Upload prompt inputs", type='bytes')
@@ -138,7 +138,7 @@ def run(self, p, checkbox_iterate, checkbox_iterate_batch, file, prompt_txt: str
138138
jobs.append(args)
139139

140140
print(f"Will process {len(lines)} lines in {job_count} jobs.")
141-
if ((checkbox_iterate or checkbox_iterate_batch) and p.seed == -1):
141+
if (checkbox_iterate or checkbox_iterate_batch) and p.seed == -1:
142142
p.seed = int(random.randrange(4294967294))
143143

144144
state.job_count = job_count
@@ -154,7 +154,7 @@ def run(self, p, checkbox_iterate, checkbox_iterate_batch, file, prompt_txt: str
154154
proc = process_images(copy_p)
155155
images += proc.images
156156

157-
if (checkbox_iterate):
157+
if checkbox_iterate:
158158
p.seed = p.seed + (p.batch_size * p.n_iter)
159159

160160

0 commit comments

Comments
 (0)