lllyasviel / lllyasviel/stable-diffusion-webui-forge

Error loading script: lora_script.py

Open
#2,672 7 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

Hi.
I have recently been getting the following error when starting the Previous Version with google colab and I am unable to use Lora.

*** Error loading script: lora_script.py
Traceback (most recent call last):
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/scripts.py", line 544, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions-builtin/Lora/scripts/lora_script.py", line 10, in
import extra_networks_lora
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions-builtin/Lora/extra_networks_lora.py", line 31
if params is None or not hasattr(params, 'positional'):
IndentationError: expected an indented block after 'try' statement on line 30

Reinstalling the Previous Version did not solve the problem.
How can I resolve this error?

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 by inspecting extensions-builtin/Lora/extra_networks_lora.py around line 30 and the traceback path in modules/script_loading.py. Reproduce startup in Google Colab with the reported Previous Version and verify that the Lora script loads without the IndentationError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.