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]: LORAs installed does not show up at Lora tab #16760

Open
1 of 6 tasks
fion0412 opened this issue Dec 29, 2024 · 5 comments
Open
1 of 6 tasks

[Bug]: LORAs installed does not show up at Lora tab #16760

fion0412 opened this issue Dec 29, 2024 · 5 comments
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance

Comments

@fion0412
Copy link

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

LORAs installed does not show up at Lora tab
Lora didnt show up

Steps to reproduce the problem

I have installed some LORAs but not idea why it won't show up at Lora Tab. Please help.

What should have happened?

Under Lora tab should display all the Lora I have installed.

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2024-12-29-13-11.json

Console logs

venv "C:\Auto1111\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Installing requirements for Face Editor
is_installed check for tensorflow-cpu failed as 'spec is None'
Installing requirements for easyphoto-webui
Installing requirements for tensorflow
CUDA 11.8
Launching Web UI with arguments:
2024-12-29 13:09:10.222780: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2024-12-29 13:09:10.947711: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
*** Extension "sd-webui-replacer" requires "sd-webui-segment-anything" which is not installed.
2024-12-29 13:09:16,846 - modelscope - INFO - PyTorch version 2.0.1+cu118 Found.
2024-12-29 13:09:16,848 - modelscope - INFO - TensorFlow version 2.15.0 Found.
2024-12-29 13:09:16,848 - modelscope - INFO - Loading ast index from C:\Users\fion77\.cache\modelscope\ast_indexer
2024-12-29 13:09:16,948 - modelscope - INFO - Loading done! Current index file version is 1.9.3, with md5 01e332cc9936f5d9ebf43a61d251b61f and a total number of 943 components indexed
ControlNet preprocessor location: C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-12-29 13:09:18,551 - ControlNet - INFO - ControlNet v1.1.448
13:09:19 - ReActor - STATUS - Running v0.7.0-b7 on Device: CUDA
*** Error loading script: replacer_main_ui.py
    Traceback (most recent call last):
      File "C:\Auto1111\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "C:\Auto1111\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_main_ui.py", line 8, in <module>
        from replacer.ui import replacer_tab_ui
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\replacer\ui\replacer_tab_ui.py", line 2, in <module>
        from modules import shared, ui_settings, errors, infotext_utils
    ImportError: cannot import name 'infotext_utils' from 'modules' (unknown location)

---
*** Error loading script: replacer_script.py
    Traceback (most recent call last):
      File "C:\Auto1111\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "C:\Auto1111\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_script.py", line 6, in <module>
        from replacer.ui import replacer_tab_ui
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\replacer\ui\replacer_tab_ui.py", line 2, in <module>
        from modules import shared, ui_settings, errors, infotext_utils
    ImportError: cannot import name 'infotext_utils' from 'modules' (unknown location)

---
Loading weights [678b70fd2d] from C:\Auto1111\stable-diffusion-webui\models\Stable-diffusion\sdxlYamersAnime_stageAnima.safetensors
AnimateDiffScript init
AnimateDiffScript init
2024-12-29 13:09:21,984 - ControlNet - INFO - ControlNet UI callback registered.
[FACEFUSION.CORE] FFMpeg is not installed
AnimateDiffScript init
Creating model from config: C:\Auto1111\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
*** Error executing callback app_started_callback for C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_api.py
    Traceback (most recent call last):
      File "C:\Auto1111\stable-diffusion-webui\modules\script_callbacks.py", line 139, in app_started_callback
        c.callback(demo, app)
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_api.py", line 18, in replacer_api
        from scripts.sam import sam_model_list
    ModuleNotFoundError: No module named 'scripts.sam'

---
Startup time: 42.9s (prepare environment: 23.5s, import torch: 4.1s, import gradio: 1.1s, setup paths: 3.4s, initialize shared: 0.3s, other imports: 0.7s, setup codeformer: 0.2s, load scripts: 7.1s, create ui: 1.6s, gradio launch: 0.7s).
Applying attention optimization: Doggettx... done.
Model loaded in 11.8s (load weights from disk: 1.5s, create model: 0.9s, apply weights to model: 7.8s, apply half(): 0.1s, move model to device: 0.4s, load textual inversion embeddings: 0.2s, calculate empty prompt: 0.8s).
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Installing requirements for Face Editor
is_installed check for tensorflow-cpu failed as 'spec is None'
Installing requirements for easyphoto-webui
Installing requirements for tensorflow
CUDA 11.8
Launching Web UI with arguments:
2024-12-29 20:56:32.029570: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2024-12-29 20:56:32.754525: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
*** Extension "sd-webui-replacer" requires "sd-webui-segment-anything" which is not installed.
2024-12-29 20:56:40,169 - modelscope - INFO - PyTorch version 2.0.1+cu118 Found.
2024-12-29 20:56:40,173 - modelscope - INFO - TensorFlow version 2.15.0 Found.
2024-12-29 20:56:40,174 - modelscope - INFO - Loading ast index from C:\Users\fion77\.cache\modelscope\ast_indexer
2024-12-29 20:56:40,322 - modelscope - INFO - Loading done! Current index file version is 1.9.3, with md5 01e332cc9936f5d9ebf43a61d251b61f and a total number of 943 components indexed
ControlNet preprocessor location: C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-12-29 20:56:43,388 - ControlNet - INFO - ControlNet v1.1.448
20:56:45 - ReActor - STATUS - Running v0.7.0-b7 on Device: CUDA
*** Error loading script: replacer_main_ui.py
    Traceback (most recent call last):
      File "C:\Auto1111\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "C:\Auto1111\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_main_ui.py", line 8, in <module>
        from replacer.ui import replacer_tab_ui
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\replacer\ui\replacer_tab_ui.py", line 2, in <module>
        from modules import shared, ui_settings, errors, infotext_utils
    ImportError: cannot import name 'infotext_utils' from 'modules' (unknown location)

---
*** Error loading script: replacer_script.py
    Traceback (most recent call last):
      File "C:\Auto1111\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "C:\Auto1111\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_script.py", line 6, in <module>
        from replacer.ui import replacer_tab_ui
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\replacer\ui\replacer_tab_ui.py", line 2, in <module>
        from modules import shared, ui_settings, errors, infotext_utils
    ImportError: cannot import name 'infotext_utils' from 'modules' (unknown location)

---
Loading weights [678b70fd2d] from C:\Auto1111\stable-diffusion-webui\models\Stable-diffusion\sdxlYamersAnime_stageAnima.safetensors
AnimateDiffScript init
AnimateDiffScript init
2024-12-29 20:56:49,154 - ControlNet - INFO - ControlNet UI callback registered.
[FACEFUSION.CORE] FFMpeg is not installed
Creating model from config: C:\Auto1111\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml
AnimateDiffScript init
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
*** Error executing callback app_started_callback for C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_api.py
    Traceback (most recent call last):
      File "C:\Auto1111\stable-diffusion-webui\modules\script_callbacks.py", line 139, in app_started_callback
        c.callback(demo, app)
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_api.py", line 18, in replacer_api
        from scripts.sam import sam_model_list
    ModuleNotFoundError: No module named 'scripts.sam'

---
Startup time: 61.0s (prepare environment: 36.6s, import torch: 4.1s, import gradio: 1.0s, setup paths: 3.2s, initialize shared: 0.3s, other imports: 1.6s, setup codeformer: 0.2s, load scripts: 11.6s, create ui: 2.0s, gradio launch: 0.6s).
Applying attention optimization: Doggettx... done.
activating extra network lora: TypeError
Traceback (most recent call last):
  File "C:\Auto1111\stable-diffusion-webui\modules\extra_networks.py", line 145, in activate
    extra_network.activate(p, [])
  File "C:\Auto1111\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 18, in activate
    p.all_prompts = [x + f"<lora:{additional}:{shared.opts.extra_networks_default_multiplier}>" for x in p.all_prompts]
TypeError: 'NoneType' object is not iterable

Model loaded in 15.2s (load weights from disk: 1.6s, create model: 1.1s, apply weights to model: 11.1s, apply half(): 0.1s, move model to device: 0.4s, calculate empty prompt: 0.8s).

Additional information

No response

@fion0412 fion0412 added the bug-report Report of a bug, yet to be confirmed label Dec 29, 2024
@missionfloyd
Copy link
Collaborator

By default, it'll only display LORAs compatible with the loaded checkpoint. Make sure you have SDXL LORAs.

Other than that, not all of the files you have in there are LORAs.
cuteCartoon_v10.safetensors is a checkpoint. Put it in models/Stable-diffusion.
canny-modified.safetensors is a controlnet model. It goes in models/ControlNet.

*** Error loading script: replacer_main_ui.py
    Traceback (most recent call last):
      File "C:\Auto1111\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "C:\Auto1111\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_main_ui.py", line 8, in <module>
        from replacer.ui import replacer_tab_ui
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\replacer\ui\replacer_tab_ui.py", line 2, in <module>
        from modules import shared, ui_settings, errors, infotext_utils
    ImportError: cannot import name 'infotext_utils' from 'modules' (unknown location)

---
*** Error loading script: replacer_script.py
    Traceback (most recent call last):
      File "C:\Auto1111\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "C:\Auto1111\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_script.py", line 6, in <module>
        from replacer.ui import replacer_tab_ui
      File "C:\Auto1111\stable-diffusion-webui\extensions\sd-webui-replacer\replacer\ui\replacer_tab_ui.py", line 2, in <module>
        from modules import shared, ui_settings, errors, infotext_utils
    ImportError: cannot import name 'infotext_utils' from 'modules' (unknown location)

This one is due to your webui version being too old. Update with git pull

{
    "name": "stable-diffusion-webui",
    "path": "C:\\Auto1111\\stable-diffusion-webui\\extensions\\stable-diffusion-webui",
    "version": "1c0a0c4c",
    "branch": "master",
    "remote": "https://github.com/AUTOMATIC1111/stable-diffusion-webui"
},

How did that happen? Delete C:\Auto1111\stable-diffusion-webui\extensions\stable-diffusion-webui

You might also try it without extensions. You can do that with the --disable-all-extensions argument.

@w-e-w w-e-w added asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance and removed bug-report Report of a bug, yet to be confirmed labels Dec 31, 2024
@fion0412
Copy link
Author

Let me try first git pull and see whether can appear all installed LORA in my LORA tab

@ropz12138
Copy link

I've encountered the same situation; has this been resolved?

@turkeelurkee
Copy link

turkeelurkee commented Jan 2, 2025

I've encountered the same issue, I'm using Norton 365, wondering if that may have had something to do with it???
I've uninstalled, re-installed: Python 3.10.6, SD1.5, A1111, Even loaded it on a non-system drive, still no fix.
This happened suddenly, on New Years Eve. All Loras were working and suddenly, nothing. They just disapeared from the UI, but were still in the Lora folder when examined in file explorer.

Error Message when I refresh:
Nothing here. Add some content to the following directories:
E:\stable-diffusion-webui\models\Lora
E:\stable-diffusion-webui\models\LyCORIS

@turkeelurkee
Copy link

Found what got my Loras back from another forum:

Hello! If you are using Stable Diffusion 1111 — All you need to do is:

1 — Go to the "Settings" menu.
2 — Click on the sub-menu "Extra Networks".
3 — Scroll down and click on the option "Always show all networks on the Lora page".
4 — Click on the "Apply Settings" button (at the top of the page).
5 — Go to your Extra Network tab, click the "Refresh" button, and TA-DAAA ... IT WORKS!

ALL your Loras appear or are back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance
Projects
None yet
Development

No branches or pull requests

5 participants