r/StableDiffusion • u/IntrovertedOtaku03 • 12d ago
Question - Help How do you keep twintails from coming up when creating a custom lora?
I'm working on a custom lora, and for whatever reason twintails keep popping up an awful lot. The sad part? I'm already using a negative prompt with the following (twintails, short twintails, pigtails:1.3). I tried to remove all depictions of twintails from my reference images, and it didn't change anything (reduced it from 50 to 27 images). I'm not sure if I'm not using the right keyword, or if it's something else, but I would like to have an idea of what is going wrong here, so that I can fix it before releasing said lora. Personally I think certain prompts are just the way Illustrious checkpoints were baked, because it seems to be happening across all of them.
3
u/amavie_space 12d ago
Your 1.3 negative is fighting the base, and it loses when the LoRA never learned that twintails are separate from your character. Tag the hairstyle your character actually has on all 27 images (long hair, ponytail, whatever it is), and maybe put a few of the dropped twintail images back captioned "twintails", so the LoRA learns it as a tag it can turn off instead of folding it into the trigger. And check whether your trigger word is, or sounds like, a character Illustrious already knows with twintails. What's the trigger?
1
u/Ill-Ant-9489 12d ago
amavie above has it, your 1.3 negative is losing to the base because the lora never learned twintails are separate from your character. dropping 50 down to 27 just thinned the set, the bias that's left is still uncaptioned so it keeps bleeding in.
the fix lives in the captions, not the negative. on the shots that do have twintails, actually tag "twintails" so the word binds to the look, and tag her real hairstyle on all 27. the app i pointed you to before (mine) has a caption lab for this, https://github.com/perfectgf/lora-dataset-studio, it shows tag frequencies and does find and replace across the whole set, so you fix the imbalance in one pass. an uneven hair tag is almost always the culprit. what's her hairstyle tagged as right now?