lllyasviel / lllyasviel/stable-diffusion-webui-forge

Lora models list broken after update

Open
#1,105 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

When pushing refresh button lora models not show up, instead error appears:
*** Error loading embedding lycoris_challenge_v1.safetensors
Traceback (most recent call last):
File "V:\webui_forge_cu121_torch231\webui\modules\textual_inversion\textual_inversion.py", line 200, in load_from_dir
self.load_from_file(fullfn, fn)
File "V:\webui_forge_cu121_torch231\webui\modules\textual_inversion\textual_inversion.py", line 182, in load_from_file
embedding = create_embedding_from_data(data, name, filename=filename, filepath=path)
File "V:\webui_forge_cu121_torch231\webui\modules\textual_inversion\textual_inversion.py", line 296, in create_embedding_from_data
assert len(data.keys()) == 1, 'embedding file has multiple terms in it'
AssertionError: embedding file has multiple terms in it

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in modules/textual_inversion/textual_inversion.py, especially load_from_dir, load_from_file, and create_embedding_from_data, then reproduce the refresh-button failure with the reported .safetensors file. Trace why a multi-term embedding raises the assertion and verify that refreshing the models list completes without the reported error and displays the LoRA models.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.