r/StableDiffusion • • 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.

0 Upvotes

8 comments sorted by

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/IntrovertedOtaku03 12d ago

Huge breasts...no points awarded at guessing what type of lora I'm trying to test out. I use WD14 for captioning, so all the captions should be good.

2

u/Bitlovin 12d ago

Why not just use a novel collection of letters so it doesn’t conflict with other concepts the model knows? There’s an option in Fizgig that checks your trigger for conflicts like that, highly recommend if you aren’t using it.

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?

1

u/IntrovertedOtaku03 12d ago

Well it's not a set character it's a body proportion I'm trying to train for, and since multiple characters are used, it varies. I took a look at the captioned files, and they seem to be pretty decent. Style, length, color...it's all there. Theoretically nothing should be wrong with them. If you want I can copy/paste a sample of a caption for you.

1

u/Ill-Ant-9489 11d ago

Ah, a body proportion concept across varied characters changes the read a bit. The concept datasets in my app run a leak check that flags attributes common across the set, github.com/perfectgf/lora-dataset-studio, which is how you catch a hairstyle sneaking into the concept.

If the captions are solid and it still bleeds, the usual culprit is frequency, twintails in a big share of the shots, so even tagged it rides along with the proportion because they co-occur. Balancing the hairstyles across the set tends to do more than the negative. Paste a caption sample if you want, happy to look.

1

u/IntrovertedOtaku03 11d ago

Took a look at the app and noticed a slight problem with it...I can't use it. I run Ubuntu, so without the necessary .sh file to act as a bootstrap, I can't do much with it as is. I'll open a ticket later requesting Linux support to be added, in the meantime, here's one of the captions I've generated by using Kohya's built in tagger. Strange part...I think there is little to no available images with the twintails hairstyle, so why it keeps happening I don't know.

giganticbreasts, 1girl, long hair, breasts, brown hair, black hair, 1boy, brown eyes, nipples, hetero, censored, penis, solo focus, dark skin, cum, huge breasts, dark-skinned female, bar censor, facial mark, cum on body, cum on breasts, paizuri, gigantic breasts, native american

1

u/Ill-Ant-9489 10d ago

Fair point, the bat files are just Windows wrappers, but there is a Docker path that runs on Ubuntu (compose, not the bat), so you may not be stuck waiting. One caveat, local training is not in the Docker image, you point it at your host ai-toolkit, so for you my app mainly helps the dataset and caption side, https://github.com/perfectgf/lora-dataset-studio. A native launcher is a fair issue to open on the repo. On the twintails, your tags say long hair, not twintails, so if some pics do have twintails and the tagger folded them into long hair, the style is uncaptioned and the lora bakes it into your concept. Worth checking the set for the ones that really have it and tagging the hairstyle by name. If none do, it is the base model leaking, not your data.