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 metadata template issue when using Adetailer #705

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

liamkerr
Copy link

@liamkerr liamkerr commented Jan 7, 2024

This PR fixes a bug with how the prompt template is saved when using Adetailer: #703

I'm not sure why Adetailer does this, but after it processes an image, it calls the process() function of dynamic-prompts a second time and, during this second execution, dynamic-prompts overwrites its template metadata with a prompt value that no longer contains template information.

So this PR just makes sure not to overwrite the template metadata after it's written correctly the first time.

@bluelovers
Copy link

#790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants