-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
[Issue]: LCM SDXL LoRa images don't properly render #2488
Comments
run |
If you need startup debug log let me know |
log looks ok, really not sure why your quality is lower than expected. but given that there are no errors, not much i can go on with. |
Given that I already have that problem of chaiNNer not working, I suspect something installed / running in my system is corrupting whatever I install (pythonwise) What can I do to ... reinstall python? I suspect it does not matter because of the venv, but I am really frustrated with all these problems unique to my system... |
Increase the lora weight to 1.8 or to somewhere around 1.5-2.0 |
That is interesting, it makes the generations way better, but still with some "pixel grid" in the details. Could go away with a few refiner steps. https://abload.de/img/00029--bof5g.png Almost usable, I do not know if this is the quality to expect (without refiner)? |
that looks like mangled pooled embeds. |
damian0815/compel#45 (comment) this was caused by mishandled text embeds. |
Ok, one image there looks exactly like the bug I am having What can I do about it? Try a different parser? I am not that knowledgeable |
not sure. it is probably a code issue where the text embeds are handled. you should try disabling Compel if that is possible. if ti' disabled, try enabling it. |
specific to LCM lora, can you try setting |
it'd be faster if you just test the code before you merge it rather than wait for users to submit bug reports after testing it.. |
This is an edge case though, not everyone is experiencing it, and one person doesn't have access to every platform to test with. |
sorry, how is this an edge case? what is the edge case? you identified the issue? |
@bghira if i could reproduce at will, i wouldn't ask for tests. |
This strange behaviour with the LCM LORA with SDXL, it doesn't affect everyone, it doesnt even effect every model I've used it with. That's why we reported it, and are willing to help test potential solutions, to figure out whats not working, since we don’t know yet what the issue is and there’s a ton of potential variables that could affect it. This is the process @bghira , this is how it works. |
@vladmandic I think it's related to the lora loading method with diffusers backend. if we convert the LDM to LCM first using https://github.com/vladmandic/automatic/blob/master/cli/lcm-convert.py then do the following:
Image generated with LDM + LCM Lora + LCM Scheduler ( low quality image output) Image generated with the fused LDM+LCM Lora model (Converted using the script above) |
Yes, that's why I've added alternative lora loading method and asked to test it. |
If yes I tried that, does not work. If not, where do I put "SD_LORA_DIFFUSER=true"? |
@vladmandic confirmed that this commit workaround fixes it 882da27 @antibugsprays to get the above workaround, follow these steps
windows: git checkout dev
git reset --hard
git pull
set SD_LORA_DIFFUSERS=TRUE
webui.bat linux: git checkout dev
git reset --hard
git pull
export SD_LORA_DIFFUSERS=TRUE
webui.sh |
Thanks a lot, so back to dev for now, will report back once I get home |
solution has been added to dev branch and will be merged to master in the next release (env variable is no longer needed) |
Issue Description
CFG is set to 1. Batch size 4, LCM sampler selected, 8 steps. SDXL Base 1.0 as model in diffusers, and LoRa loaded as lora:LCM_sdxl:1.0. All extensions disabled
The images look like this:
Is the problem that I renamed the original LoRa so the ui can not detect it? What could be the problem? There is no error message. I know that the quality might suffer a bit because it is LCM but that looks way too bad
Version Platform Description
Version: 044c314
Win 10
RTX 4090
Chrome
Relevant log output
Backend
Diffusers
Model
SD-XL
Acknowledgements
The text was updated successfully, but these errors were encountered: