Closed FriedGenera closed 1 month ago
Hello, @FriedGenera! I'm here to help you with any bugs, questions, or contributions. Let me know how I can assist you.
Using [SEP]
in Adetailer's prompt results in only one face's prompt being saved to the image's metadata because the save_image
function only saves a single prompt from p.all_prompts
or p.prompt
to the image's metadata. The function does not handle multiple prompts separated by [SEP]
.
Here is the relevant code snippet from the save_image
function:
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 save_prompt
variable is set to a single prompt from p.all_prompts
or p.prompt
, and this single prompt is saved to the image's metadata [1].
To continue talking to Dosu, mention @dosu.
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 mediapipe_face_full A1111 webUI:v1.7.0 M2 mac mini
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