Skip to content

Commit

Permalink
if use use_main_prompt index = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Apr 7, 2024
1 parent e164031 commit 6efdfe3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
if index is None:
if use_main_prompt:
index = 0
elif index is None:
index = position_in_batch + iteration * p.batch_size

if all_negative_prompts is None:
Expand Down

0 comments on commit 6efdfe3

Please sign in to comment.