compact infotaxt info_json

This commit is contained in:
w-e-w
2024-01-23 02:17:21 +09:00
parent 8a6a4ad894
commit 36fb876da6
3 changed files with 34 additions and 2 deletions

View File

@@ -747,7 +747,7 @@ 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,
}
generation_params_text = ", ".join([k if k == v else f'{k}: {infotext_utils.quote(v)}' for k, v in generation_params.items() if v is not None])
generation_params_text = infotext_utils.build_infotext(generation_params)
prompt_text = p.main_prompt if use_main_prompt else all_prompts[index]
negative_prompt_text = f"\nNegative prompt: {p.main_negative_prompt if use_main_prompt else all_negative_prompts[index]}" if all_negative_prompts[index] else ""