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

[Bug]: All LoRAs not work! (very sad!!!) #10724

Closed
1 task done
CaMMMXX opened this issue May 26, 2023 · 2 comments
Closed
1 task done

[Bug]: All LoRAs not work! (very sad!!!) #10724

CaMMMXX opened this issue May 26, 2023 · 2 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@CaMMMXX
Copy link

CaMMMXX commented May 26, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

WebUI runs on macOS 13.4

I get this error when I try to load Lora from the WebUI

error info:
locon load lora method
loading Lora /Users/xx/Sites/stable-diffusion-webui/models/Lora/Dress/LiquidClothesV1.safetensors: AttributeError
Traceback (most recent call last):
File "/Users/xx/Sites/stable-diffusion-webui/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 "/Users/xx/Sites/stable-diffusion-webui/extensions/a1111-sd-webui-locon/scripts/main.py", line 371, in load_lora
lora.mtime = os.path.getmtime(lora_on_disk.filename)
AttributeError: 'str' object has no attribute 'filename'

Steps to reproduce the problem

Activate the Lora card from the WebUI
clicking generate, and output an error

What should have happened?

It should run as normal and Lora should function

Commit where the problem happens

version: v1.2.1  •  python: 3.10.11  •  torch: 2.1.0.dev20230523  •  xformers: N/A  •  gradio: 3.29.0  •  checkpoint: 419c04d0dc

What platforms do you use to access the UI ?

MacOS

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

# Commandline arguments for webui.py,
export COMMANDLINE_ARGS="--skip-torch-cuda-test --no-half --no-half-vae --use-cpu interrogate --device=mps"

# install command for torch
export TORCH_COMMAND="pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html"

List of extensions

table-Diffusion-Webui-Civitai-Helper
a1111-sd-webui-locon
openpose-editor
sd-webui-controlnet
stable-diffusion-webui-images-browser
stable-diffusion-webui-state

and built-in

Console logs

Last login: Fri May 26 09:48:19 on ttys000
xx@192 ~ % cd sites/stable-diffusion-webui
xx@192 stable-diffusion-webui % /Users/xx/Sites/stable-diffusion-webui/webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on xx user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.11 (main, Apr  7 2023, 07:24:53) [Clang 14.0.0 (clang-1400.0.29.202)]
Version: v1.2.1
Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045
Installing requirements


Launching Web UI with arguments: --skip-torch-cuda-test --no-half --no-half-vae --use-cpu interrogate --device=mps
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: /Users/xx/Sites/stable-diffusion-webui/extensions/Stable-Diffusion-Webui-Civitai-Helper/setting.json
Civitai Helper: No setting file, use default
Additional Network extension not installed, Only hijack built-in lora
LoCon Extension hijack built-in lora successfully
ControlNet v1.1.192
ControlNet v1.1.192
Image Browser: ImageReward is not installed, cannot be used.
Loading weights [419c04d0dc] from /Users/xx/Sites/stable-diffusion-webui/models/Stable-diffusion/Character/ChilloutNebula v2.0.safetensors
Creating model from config: /Users/xx/Sites/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
Create LRU cache (max_size=16) for preprocessor results.
Create LRU cache (max_size=16) for preprocessor results.
DiffusionWrapper has 859.52 M params.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Create LRU cache (max_size=16) for preprocessor results.
Startup time: 4.2s (import torch: 0.8s, import gradio: 0.7s, import ldm: 0.2s, other imports: 0.5s, list SD models: 0.1s, load scripts: 0.6s, extra networks: 0.3s, create ui: 0.6s, gradio launch: 0.2s).
Applying cross attention optimization (InvokeAI).
Textual inversion embeddings loaded(0): 
Model loaded in 2.2s (load weights from disk: 0.3s, create model: 0.8s, apply weights to model: 0.5s, move model to device: 0.6s).
locon load lora method
loading Lora /Users/xx/Sites/stable-diffusion-webui/models/Lora/Dress/LiquidClothesV1.safetensors: AttributeError
Traceback (most recent call last):
  File "/Users/xx/Sites/stable-diffusion-webui/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 "/Users/xx/Sites/stable-diffusion-webui/extensions/a1111-sd-webui-locon/scripts/main.py", line 371, in load_lora
    lora.mtime = os.path.getmtime(lora_on_disk.filename)
AttributeError: 'str' object has no attribute 'filename'

100%|███████████████████████████████████████████| 20/20 [00:10<00:00,  1.98it/s]
Total progress: 100%|███████████████████████████| 20/20 [00:09<00:00,  2.22it/s]
Total progress: 100%|███████████████████████████| 20/20 [00:09<00:00,  2.25it/s]

Additional information

No response

@CaMMMXX CaMMMXX added the bug-report Report of a bug, yet to be confirmed label May 26, 2023
@acncagua
Copy link
Contributor

acncagua commented May 26, 2023

a1111-sd-webui-locon

It is not a WebUI bug, but a bug in the a1111-sd-webui-locon extension.
https://github.com/KohakuBlueleaf/a1111-sd-webui-locon
It is officially marked as not to be used

This issue has a solution in this Issues
KohakuBlueleaf/a1111-sd-webui-locon#40

@CaMMMXX
Copy link
Author

CaMMMXX commented May 26, 2023

a1111-sd-webui-locon

It is not a WebUI bug, but a bug in the a1111-sd-webui-locon extension. https://github.com/KohakuBlueleaf/a1111-sd-webui-locon It is officially marked as not to be used

This issue has a solution in this Issues KohakuBlueleaf/a1111-sd-webui-locon#40

Problem solved! Thanks!!!

@CaMMMXX CaMMMXX closed this as completed May 26, 2023
@CaMMMXX CaMMMXX reopened this May 26, 2023
@CaMMMXX CaMMMXX closed this as completed May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants