-
-
Notifications
You must be signed in to change notification settings - Fork 43
Error when load Lora #34
Comments
what model name and what lora link? |
@Linaqruf this is the link. I tried to use other Lora from Naonaovn & Luxluna but i still facing the same issue https://huggingface.co/Kanbara/doll-likeness-series/resolve/main/koreanDollLikeness_v20.safetensors |
@Linaqruf Hello there. Since apparently I'm now facing a similar (or the same?) issue @YellowStar11 faced a few days ago, I chose to write this here instead of creating a new issue. (Whatever this is, it's definitely weird, because I used the Colab with the A1111 repo just yesterday and the day before and had no problems loading LoRAs on either occasion) You can see in the screenshot that something isn't right. After I got that error the first time, I hit the "Disconnect and delete runtime" button and tried everything again from scratch, and still the problem persisted. As for your possible explanations above:
This leads me to believe that it's something with the A1111 repo, right? Then again, it worked fine just yesterday, what could've possibly changed? And if it is a problem with the repo, is there a fix? |
Hi, now I understand the problem. The problem is as follows:
That's why the LoRA can't be loaded. This is also mentioned in the LoCon extension repository
For a temporary fix, don't set
I also plan to delete a1111-sd-webui-locon after all the problems are resolved. I know it's complicated, but because there are no universal rules to implement LoRA, people now make their own implementations, resulting in the same LoRA being different due to different algorithms. Thank you. |
Thank you so much for the thorough explanation! I'll be trying today with "update extensions" set to false as you suggested. Again, thanks! |
Lora already installed but i can't use it. plz help me!
locon load lora method
loading Lora /content/cagliostro-colab-ui/models/Lora/koreanDollLikeness_v20.safetensors: AttributeError
Traceback (most recent call last):
File "/content/cagliostro-colab-ui/extensions/a1111-sd-webui-locon/scripts/../../../extensions-builtin/Lora/lora.py", line 222, in load_loras
lora = load_lora(name, lora_on_disk.filename)
File "/content/cagliostro-colab-ui/extensions/a1111-sd-webui-locon/scripts/main.py", line 370, in load_lora
is_sd2 = 'model_transformer_resblocks' in shared.sd_model.lora_layer_mapping
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1614, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'LatentDiffusion' object has no attribute 'lora_layer_mapping'
The text was updated successfully, but these errors were encountered: