lllyasviel / lllyasviel/stable-diffusion-webui-forge
Error loading script: lora_script.py
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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