stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

ModuleNotFoundError: No module named 'ldm_patched.modules.model_management'

Open wrathgoddess opened this issue 1 year ago • 7 comments

after updating most extensions stoped working

*** Error loading script: on_app_started.py Traceback (most recent call last): File "J:\FORGED\webui\modules\scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "J:\FORGED\webui\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 "J:\FORGED\webui\extensions\sd-webui-prompt-all-in-one\scripts\on_app_started.py", line 10, in from scripts.physton_prompt.get_token_counter import get_token_counter File "J:\FORGED\webui\extensions\sd-webui-prompt-all-in-one\scripts\physton_prompt\get_token_counter.py", line 2, in from modules.sd_hijack import model_hijack ImportError: cannot import name 'model_hijack' from 'modules.sd_hijack' (J:\FORGED\webui\modules\sd_hijack.py).

one example

wrathgoddess avatar Aug 08 '24 10:08 wrathgoddess

recent update fixed some things but still

*** Error loading script: animatediff.py Traceback (most recent call last): File "J:\FORGED\webui\modules\scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "J:\FORGED\webui\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 "J:\FORGED\webui\extensions\sd-forge-animatediff\scripts\animatediff.py", line 10, in from scripts.animatediff_infv2v import AnimateDiffInfV2V File "J:\FORGED\webui\extensions\sd-forge-animatediff\scripts\animatediff_infv2v.py", line 5, in from ldm_patched.modules.model_management import get_torch_device, soft_empty_cache ModuleNotFoundError: No module named 'ldm_patched.modules.model_management'


*** Error loading script: animatediff_infotext.py Traceback (most recent call last): File "J:\FORGED\webui\modules\scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "J:\FORGED\webui\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 "J:\FORGED\webui\extensions\sd-forge-animatediff\scripts\animatediff_infotext.py", line 6, in from scripts.animatediff_ui import AnimateDiffProcess File "J:\FORGED\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in from scripts.animatediff_mm import mm_animatediff as motion_module File "J:\FORGED\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in from modules_forge.unet_patcher import UnetPatcher ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

sd-webui-prompt-all-in-one background API service started successfully. *** Error loading script: attention.py Traceback (most recent call last): File "J:\FORGED\webui\modules\scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "J:\FORGED\webui\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 "J:\FORGED\webui\extensions\sd-webui-regional-prompter\scripts\attention.py", line 3, in import ldm.modules.attention as atm ModuleNotFoundError: No module named 'ldm'

wrathgoddess avatar Aug 09 '24 01:08 wrathgoddess

Keep hoping they'll get around to fixing this before they're done with all the construction, I have no clue what the ldm module is for but apparently some of my favorite extensions can't work without it

MBurneracc avatar Aug 09 '24 04:08 MBurneracc

I'm having this issue too. any updates?

alenknight avatar Aug 16 '24 16:08 alenknight

they don't care, there's your update.

MBurneracc avatar Aug 16 '24 21:08 MBurneracc

i did fix some extensions by moving some files from old version to new version but regional prompter not working yet trying to figure out how to fix it but i have no idea atm

Screenshot 2024-08-16 200943

*** Error running process: J:\FORGED\webui\extensions\sd-webui-regional-prompter\scripts\rp.py Traceback (most recent call last): File "J:\FORGED\webui\modules\scripts.py", line 844, in process script.process(p, *script_args) File "J:\FORGED\webui\extensions\sd-webui-regional-prompter\scripts\rp.py", line 509, in process self.handle = hook_forwards(self, p.sd_model.model.diffusion_model,remove = True) AttributeError: 'StableDiffusionXL' object has no attribute 'model' current error im getting after messing with files

wrathgoddess avatar Aug 17 '24 01:08 wrathgoddess

i did fix some extensions by moving some files from old version to new version but regional prompter not working yet trying to figure out how to fix it but i have no idea atm

I got tired of waiting and tried that myself, after replacing one thing something else down the line would be missing next. I just gave up and rolled back to version several weeks back to wait and see if they ever bother fixing anything. Like most of the current bugs this seems to be a self inflicted wound where illya just gutted things they didn't think were important.

MBurneracc avatar Aug 17 '24 19:08 MBurneracc

which version did you roll back to?

alenknight avatar Aug 18 '24 19:08 alenknight