Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't emit empty template/negative template into infotext #695

Merged
merged 1 commit into from
Dec 11, 2023
Merged
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
7 changes: 5 additions & 2 deletions sd_dynamic_prompts/dynamic_prompting.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,11 @@ def process(
)

if opts.dp_write_raw_template:
p.extra_generation_params["Template"] = original_prompt
p.extra_generation_params["Negative Template"] = original_negative_prompt
params = p.extra_generation_params
if original_prompt:
params["Template"] = original_prompt
if original_negative_prompt:
params["Negative Template"] = original_negative_prompt

p.all_prompts = all_prompts
p.all_negative_prompts = all_negative_prompts
Expand Down