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

Fix emphasis infotext missing from params.txt #15142

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
8 changes: 4 additions & 4 deletions modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,10 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if p.scripts is not None:
p.scripts.process_batch(p, batch_number=n, prompts=p.prompts, seeds=p.seeds, subseeds=p.subseeds)

p.setup_conds()

p.extra_generation_params.update(model_hijack.extra_generation_params)

# params.txt should be saved after scripts.process_batch, since the
# infotext could be modified by that callback
# Example: a wildcard processed by process_batch sets an extra model
Expand All @@ -905,13 +909,9 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
processed = Processed(p, [])
file.write(processed.infotext(p, 0))

p.setup_conds()

for comment in model_hijack.comments:
p.comment(comment)

p.extra_generation_params.update(model_hijack.extra_generation_params)

if p.n_iter > 1:
shared.state.job = f"Batch {n+1} out of {p.n_iter}"

Expand Down
Loading