What am I doing wrong with Loras?
New to stable diffusion so please forgive me if this is a dumb question.
I've got the general hang of things now, how to use checkpoints and Loras but for the life of me, I can't get Loras to work properly.
Let's say I go and download a Billie Ellish Lora. This https://civitai.com/models/50818?modelVersionId=55334
If I copy the exact generation details from the examples, yeah sure it works and gives me this picture:
https://i.imgur.com/DEXSt7H.png
So I know for a fact that the Lora is working and it's working up close. Now if I enter this prompt:
" woman ((((waist up))), epic (photo, studio lighting, hard light, sony a7, 50 mm, matte skin, pores, colors, hyperdetailed, hyperrealistic), lora:locon\_billie\_v1\_from\_v1\_64\_32:1.3, (((standing)))"
Which is the exact same prompt to generate the above image except I added "Waist up and standing"
It gives me this image:
https://i.imgur.com/T8vMAJm.png
Why does this keep happening?? It looks nothing like the Lora. How do people manage to get such realistic generations of celebrity or character faces when the picture isn't an up close portrait?
About this post
- Posted
- Archived
- Score
- 2 · 60% up
- Kind
- Gallery · 2 files
- ID
- 182ulfb
18 comments
Be cautious of adding too much weight to a prompt. “((((waist up))))” is effectively adding a 1.44 weight, then you’re adding another “waist up and standing” prompt to that. If I had to guess, all those waist up prompts are overriding the Lora.
Try only using one instance of “(waist up)” or “(waist up:1.1)” and a CFG of something like 4-6
1.3 seems like a really heavy weight for a person lora tbh. Also, have you tried without LoRA at all? A lot of checkpoints can generate them alot of celebs really well.
If a model can generate a celebrity decently even without a lora I still like to include the lora, but on a very low weight, around 0.3.
Sometimes it helps to use Adetailer for the face when using a lora and generating somewhat distant shots. In this case though it seems the lora just sucks. Even with adetailer it gives terrible results unless it's a closeup. On their other version of the model someone in the comments mentions the same thing.
Ah so it's a Lora thing?
And sorry for asking, how do I use Adetailer?
Adetailed is an extension for A1111 that you can install from the extensions tab
it locates faces/hands/whatever you set as detection and inpaints will full resolution but low noise the detected areas. It's very good at improving details "automatically"
It seems to be, yeah.
Adetailer is an extension and is a must have imo
https://github.com/Bing-su/adetailer
Here's a video showing how to use it
https://www.youtube.com/watch?v=kL9rD7iYVOY
It’s your prompt and doesn’t even look like you are triggering the Lora with the right keyword. “SKS woman” is the keyword to trigger the LORA.
First : you have to work on your txt2img prompt aka iterate on it.
Start with simple words, no weights at the beginning, and add things you expect and test what it outputs.
It will be hard to get a full body and the proper face with a single pass, sd won’t let you control the inference attention easily.
If output doesn’t deliver, try weighting some words, change word orders, tweak guidance scale, etc
Choose a sampler for what you want to achieve. For photo I like DPM++ 2M Karras with 12/15 steps for a start.
Do your txt2img for composition and iterate until you’re satisfied with it, the pose, etc. Don’t hesitate to use controlnet for pose/composition.
Lora can be efficient, but also image prompt can help with a face model and portrait of the person for txt2img. I’m not a A111 user anymore I switched to Comfy but I bet it’s also possible there.
Then if you want to refine, you can inpaint the face with a Lora or again with image prompt.
I remember A111 Loopback script can also help to reach what you want, refining the inpainting with many inference passes.
You don’t have to work necessarily in high resolution but for face match, expect to use at least a 512x512 latent to have a good inference.
IIRC that’s what A111 « only masked » option offers given you do a img2img pass.
Given you try to get a proper face on a full standing body, adetailer/inpainting is the only way to go.
And once the face looks fixed, for greater results, give a try to a tiled latent upscale with an upscale model like UltraSharp4x
best answer.
i would add another trick(more advanced, when one understand SD)
https://github.com/cheald/sd-webui-loractl - you can start applying Lora at 50% steps. if someone want Billie Ellish - he start from general image of woman -> transforming into Billie Ellish at the end.
lora:BillieEllish:0@0.5,1@0.6 [woman : sks woman : 0.5]
cause lora can prefer close up photos, so we do not affect composition, but change appearance at the end.
Agreed 👍
Yeah prompt traversal is a nice technique too, but as said the body might take 2/3 of the image surface hence an upscale then an inpaint might still be the best option to have a very good result.
full body and close up is a problem with SD . you can use in paint and choose mask only and low weight .This what adetailer do . it just a short cut
read this article https://stable-diffusion-art.com/inpainting/
"How do people manage to get such realistic generations of celebrity or character faces when the picture isn't an up close portrait?"
This has to do with the training dataset that must include faces of all sizes possible and not only close-up or upper body shots. In the case of this Lycoris by judging on the promo images on civitai it's only close-ups. So I suspect the dataset was only trained on close-ups and it's why you are getting terrible results on non close up images generated.
try lora:locon\_billie\_v1\_from\_v1\_64\_32:0.8 with prompts a woman of 20 years old.
I actually tend to find a lower weight like 0.7-0.8 gives better results with most celeb loras.