Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,9 +799,11 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments=None, iter
"User": p.user if opts.add_user_name_to_info else None,
}

# Only apply the index to the specified field to avoid causing other plugins to fail to save list values.
list_index_fields = ["Hires prompt", "Hires negative prompt", "Styles array"]
for key, value in generation_params.items():
try:
if isinstance(value, list):
if key in list_index_fields and isinstance(value, list):
generation_params[key] = value[index]
elif callable(value):
generation_params[key] = value(**locals())
Expand Down