camenduru / stable-diffusion-webui-colab

stable diffusion webui colab
The Unlicense
15.45k stars 2.6k forks source link

[Bug]: LoRA not working after update #469

Closed kzai8108 closed 11 months ago

kzai8108 commented 11 months ago

What happened?

Like the title, I can't use LoRA after the update.

Colab cell output

loading Lora /content/stable-diffusion-webui/models/Lora/add_detail.safetensors: TypeError
Traceback (most recent call last):
  File "/content/stable-diffusion-webui/extensions/a1111-sd-webui-locon/scripts/../../../extensions-builtin/Lora/lora.py", line 253, in load_loras
    lora = load_lora(name, lora_on_disk)
  File "/content/stable-diffusion-webui/extensions/a1111-sd-webui-locon/scripts/main.py", line 366, in load_lora
    lora.mtime = os.path.getmtime(filename)
  File "/usr/lib/python3.10/genericpath.py", line 55, in getmtime
    return os.stat(filename).st_mtime
TypeError: stat: path should be string, bytes, os.PathLike or integer, not LoraOnDisk

Which colab and model(s) were you using when the error occurred?

anything_5_webui_colab https://colab.research.google.com/github/camenduru/stable-diffusion-webui-colab/blob/main/stable/anything_5_webui_colab.ipynb

Which Public WebUI Colab URL were you using when the error occurred?

remote.moe

If you used HiRes mode when the error occurred, please provide the Hires info

No response