Commit 6efdfe32 authored by w-e-w's avatar w-e-w

if use use_main_prompt index = 0

parent e1640314
...@@ -704,7 +704,9 @@ def program_version(): ...@@ -704,7 +704,9 @@ def program_version():
def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments=None, iteration=0, position_in_batch=0, use_main_prompt=False, index=None, all_negative_prompts=None, all_hr_prompts=None, all_hr_negative_prompts=None): def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments=None, iteration=0, position_in_batch=0, use_main_prompt=False, index=None, all_negative_prompts=None, all_hr_prompts=None, all_hr_negative_prompts=None):
if index is None: if use_main_prompt:
index = 0
elif index is None:
index = position_in_batch + iteration * p.batch_size index = position_in_batch + iteration * p.batch_size
if all_negative_prompts is None: if all_negative_prompts is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment