-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Lora files not being correctly applied #34
Comments
I'm using a few LoRAs daily and they're definitely being applied (I run the same prompt/seed with several different loras appended to the end, and they all look radically different in the manner I'd expect to see from each lora). I haven't tested the results against images directly generated with Auto1111; it's possible the API call may be slightly different from native - I'll run a few tests tomorrow. If you're recently updated Dream Factory, do a hard refresh of your gallery page (control-F5 in Chrome, or clear your browser cache in other browsers). The gallery had a bug where it was treating lora embeddings as HTML and not displaying them, even though they were present in the metadata - it was fixed a few weeks ago; here is an image that just came out of one of my machines; you can see the lora in the prompt: |
Ok, ran a test today and am getting the same image from Dream Factory as I am from Auto1111 natively when using loras. I'm using --xformers so there may be some very minor differences, but that is expected. From Dream Factory: From Auto1111: Settings:
For reference, this is the image I get if I keep everything the same but remove the lora reference: It looks like everything is working properly. In Auto1111, do you see your lora files when you click "show extra networks" from the txt2img tab? |
I am stumped - everything looks fine in your config.txt and your prompt file, but to be 100% sure, I copied it and ran it myself. I downloaded the same rabbit LoRA and the midjourney-v4 model as well. Dream Factory gives me the same image that Auto1111 generated for you (see below), so it seems to be working properly here. Is your Auto1111 repo up to date (from the command line in the Auto1111 base directory, you can type I tested with --xformers enabled and disabled (I get the same image on both sides regardless), and I don't have anything else in my Auto1111 startup script. If your Auto1111 is up to date, I'm honestly not sure what else could possibly cause this. The prompt file I used is an exact copy of yours; I just added the !SEED you used and turned off model trigger insertion: |
On the setup.py installation error, you can try re-running with the shell option to fix; depending on your environment it might not be able to find a needed executable (git, etc). If you add the --verbose option it'll echo everything to the screen so you can see any errors that might pop up:
Honestly I'm completely at a loss as to why LoRA embeddings in your Dream Factory prompts don't seem to be having any effect. I have 4 installations running DF (mixed windows/linux environments with various dissimilar hardware) and loras are working in all of them and I haven't had any other reports of loras not working. Some things you can try, although I'm honestly not sure they'll be all that helpful:
|
So after a fair amount of testing and a lot of testing later, I seem to have found a solution, added command line arg --api to webui-users.bat Small side note, I installed dreamfactory onto a completely new machine and experienced all same problems and resolved them with this same solution. Really appreciate all the help, if you need any additional information from me please let me know happy to help! Thanks! |
Aha - glad you found the issue! Very strange that none of my Auto1111 installations have the issue, but hopefully he'll patch a fix into an upcoming release so others don't experience the problem. At least I'll be able to point others to the resolution if anyone else mentions it - thanks for the info! Edit: pinning this until the issue is resolved in in the Auto1111 API! |
@TheHaBachi, looks like this has been fixed if you want to test, its working for me. |
I just set up Dream Factory on top of my automatic1111 and noticed that Lora files seem to not be working correctly. Using Auto1111 on the same machine I can use the same prompts and seeds with a lora model and get drastically different results from what dream factory produces. It appears that the loras are not being applied at all?
I have tried inserting them in the prompt in the following ways:
<lora:[filename]:[strength]> ((the way it works in Auto1111 by default & the way it's copied out of the clipboard))
<[filename]:[strength]> ((as suggested in issue #28 ))
lora:[filename]:[strength] ((just to test))
Also noticed that in the gallery when you are reviewing the prompts the lora part is missing from the preview like it has been commented out in some way as well. I have verified that the files & prompts are working correctly in Auto1111 but not for dream factroy, is there a config that needs to be added for dream factory for loras to work properly?
Any help is appreciated, really enjoy being able to use dreamfactory so far
The text was updated successfully, but these errors were encountered: