lllyasviel / lllyasviel/stable-diffusion-webui-forge
ModuleNotFoundError: No module named 'ldm.modules.attention'
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
> *** Error loading script: negpip.py
> Traceback (most recent call last):
> File "I:\StabilityMatrix\Packages\Stable Diffusion WebUI Forge b9705c5\modules\scripts.py", line 525, in load_scripts
> script_module = script_loading.load_module(scriptfile.path)
> File "I:\StabilityMatrix\Packages\Stable Diffusion WebUI Forge b9705c5\modules\script_loading.py", line 13, in load_module
> module_spec.loader.exec_module(module)
> File "", line 883, in exec_module
> File "", line 241, in _call_with_frames_removed
> File "I:\StabilityMatrix\Packages\Stable Diffusion WebUI Forge b9705c5\extensions\sd-webui-negpip\scripts\negpip.py", line 5, in
> import ldm.modules.attention as atm
> ModuleNotFoundError: No module named 'ldm.modules.attention'
Does anyone have the slightest clue whether this is fixable on our own or requires just waiting and praying for a fix? It's the same error for multiple extensions all the same, I have nowhere near the technical knowhow to figure it out myself and it's been over a week since the construction broke negpip and regional prompter.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with extensions/sd-webui-negpip/scripts/negpip.py and its import of ldm.modules.attention, then inspect modules/script_loading.py and modules/scripts.py to understand how the extension is loaded. Reproduce the reported error and determine whether the missing module is a Forge compatibility issue; done means the affected extensions load without this ModuleNotFoundError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100