Skip to content
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

locon is not working with google colab… #44

Open
kemomimi2929 opened this issue May 23, 2023 · 7 comments
Open

locon is not working with google colab… #44

kemomimi2929 opened this issue May 23, 2023 · 7 comments

Comments

@kemomimi2929
Copy link

In a recent update
I cannot use locon in google colab.
I am having a hard time.
Does anyone know of a code that works with colab?

@DEX-1101
Copy link

!cd /content/stable-diffusion-webui/extensions/a1111-sd-webui-locon && git checkout 04b768b
run it after cloning webui, work for me so far

@kemomimi2929
Copy link
Author

thank you!
I used the code you gave me
I got this error.
Anyone know the cause?
"loading Lora /content/stable-diffusion-webui/models/Lora/happymeek_loha.safetensors: AssertionError
Traceback (most recent call last):
File "/content/stable-diffusion-webui/extensions-builtin/Lora/lora.py", line 253, in load_loras
lora = load_lora(name, lora_on_disk)
File "/content/stable-diffusion-webui/extensions-builtin/Lora/lora.py", line 220, in load_lora
raise AssertionError(f"Bad Lora layer name: {key_diffusers} - must end in lora_up.weight, lora_down.weight or alpha")
AssertionError: Bad Lora layer name: lora_te_text_model_encoder_layers_0_mlp_fc1.hada_w1_a - must end in lora_up.weight, lora_down.weight or alpha"

It's this error.
please. Help me.

@DEX-1101
Copy link

if you're using latests webui, you can try using old commit to make it work since this extension is deprecated, or you can try https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris instead, idk if its works on normal lora since its lycoris type.

@KohakuBlueleaf
Copy link
Owner

@DEX-1101 lycoris ext can support "normal lora"
Since "normal lora" is subset of locon

@AmndaIC1805
Copy link

hello anyone know what causing this error ?
reading lora /content/bilek/models/LyCORIS/victoricamajonotabitabi.safetensors: AssertionError
Traceback (most recent call last):
File "/content/bilek/extensions/bilek-lycoris/lycoris.py", line 146, in init
self.metadata = sd_models.read_metadata_from_safetensors(filename)
File "/content/bilek/modules/sd_models.py", line 232, in read_metadata_from_safetensors
assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file"
AssertionError: /content/bilek/models/LyCORIS/victoricamajonotabitabi.safetensors is not a safetensors file

@DEX-1101
Copy link

DEX-1101 commented Jun 6, 2023

where your download the file?
its either wrong extension or corrupted download/uncompleted.

@AmndaIC1805
Copy link

where your download the file? its either wrong extension or corrupted download/uncompleted.

thanks for your reply, i just figure out that was corrupted of uncomplete download because civitai server is kinda meh, ive been try to redownload it and it been works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants