-
Notifications
You must be signed in to change notification settings - Fork 316
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
[Bug]: When Using [SEP] in Adetailer Prompt, only 1 face's prompt is added to the image metadata #656
Comments
Hello, @FriedGenera! I'm here to help you with any bugs, questions, or contributions. Let me know how I can assist you. Using Here is the relevant code snippet from the def save_image(self, p, image, *, condition: str, suffix: str) -> None:
i = get_i(p)
if p.all_prompts:
i %= len(p.all_prompts)
save_prompt = p.all_prompts[i]
else:
save_prompt = p.prompt
seed, _ = self.get_seed(p)
if opts.data.get(condition, False):
images.save_image(
image=image,
path=p.outpath_samples,
basename="",
seed=seed,
prompt=save_prompt,
extension=opts.samples_format,
info=self.infotext(p),
p=p,
suffix=suffix,
) The |
I previously applied a feature to show the actual applied prompt in the AD Prompt field. I think this is causing this bug now and would like to revert it. Thanks. |
I am experiencing this issue as well. Same steps to reproduce. It only applies one of the prompts separated by [SEP] even though it detects more than one face in the image. |
I probably encountered the same situation. After upgrading from ADetailer:v24.1.2 to v24.6.0, the prompts in the prompt column, [SEP] and the prompts after it, are no longer recorded in png. It seems that [SEP] and the prompts after it are disabled. Since they are not recorded in png, I cannot reproduce the previous settings. For the time being, I have reverted to v24.1.2 to deal with the problem. Environment |
Describe the bug
As the title suggests, when you use [SEP] in adetailer's prompt, only one of the face's prompts is saved to the image's metadata. This applies to any generation with more than 1 face, all other faces are not added to the metadata.
Steps to reproduce
Enabling Adetailer, add prompt with [SEP], enable regional prompter, generate the image with Hi-Res fix and controlnet models.
Screenshots
Console logs, from start to end.
List of installed extensions
Adetailer
Controlnet
Regional Prompter
Agent Scheduler
The text was updated successfully, but these errors were encountered: