continue-revolution / sd-forge-animatediff

AnimateDiff for Stable Diffusion WebUI Forge, mirror for https://github.com/continue-revolution/sd-webui-animatediff/tree/forge/master
113 stars 9 forks source link

[Bug]: ModuleNotFoundError: No module named 'modules_forge.unet_patcher' #22

Open Alisa121212 opened 2 months ago

Alisa121212 commented 2 months ago

Is there an existing issue for this?

Have you read FAQ on README?

What happened?

I'm trying to use animatediff but it didn't work at all, it's not even started or have a active tab

Steps to reproduce the problem

  1. Start webui forge
  2. get errors in console
  3. extension didn't work

What should have happened?

extension should be work and at least start

Commit where the problem happens

webui: forge extension: sd-forge-animatediff

What browsers do you use to access the UI ?

No response

Command Line Arguments

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformers --opt-sdp-attention --medvram-sdxl --theme dark --medvram
git pull

call webui.bat

Console logs

Updating 668e87f9..c3366a76
error: Your local changes to the following files would be overwritten by merge:
        style.css
Please commit your changes or stash them before you merge.
Aborting
venv "D:\StablediffFORGE\webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: f2.0.1v1.10.1-previous-501-g668e87f9
Commit hash: 668e87f920be30001bb87214d9001bf59f2da275
Launching Web UI with arguments: --xformers --opt-sdp-attention --medvram-sdxl --theme dark --medvram
Arg --medvram is removed in Forge.
Now memory management is fully automatic and you do not need any command flags.
Please just remove this flag.
In extreme cases, if you want to force previous lowvram/medvram behaviors, please use --always-offload-from-vram
Arg --medvram-sdxl is removed in Forge.
Now memory management is fully automatic and you do not need any command flags.
Please just remove this flag.
In extreme cases, if you want to force previous lowvram/medvram behaviors, please use --always-offload-from-vram
Total VRAM 8192 MB, total RAM 32374 MB
pytorch version: 2.3.1+cu121
xformers version: 0.0.27
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 2070 SUPER : native
Hint: your device supports --cuda-malloc for potential speed improvements.
VAE dtype preferences: [torch.float32] -> torch.float32
CUDA Using Stream: False
Using xformers cross attention
Using xformers attention for VAE
ControlNet preprocessor location: D:\StablediffFORGE\webui\models\ControlNetPreprocessor
[-] ADetailer initialized. version: 24.9.0, num models: 10
*** Error loading script: animatediff.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff.py", line 10, in <module>
        from scripts.animatediff_infv2v import AnimateDiffInfV2V
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_infv2v.py", line 5, in <module>
        from ldm_patched.modules.model_management import get_torch_device, soft_empty_cache
    ModuleNotFoundError: No module named 'ldm_patched'

---
*** Error loading script: animatediff_infotext.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_infotext.py", line 6, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_infv2v.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_infv2v.py", line 5, in <module>
        from ldm_patched.modules.model_management import get_torch_device, soft_empty_cache
    ModuleNotFoundError: No module named 'ldm_patched'

---
*** Error loading script: animatediff_latent.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_latent.py", line 10, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_mm.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_output.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_output.py", line 15, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_prompt.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_prompt.py", line 7, in <module>
        from scripts.animatediff_infotext import write_params_txt
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_infotext.py", line 6, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_settings.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_settings.py", line 4, in <module>
        from scripts.animatediff_ui import supported_save_formats
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_ui.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
2024-09-08 10:29:35,757 - ControlNet - INFO - ControlNet UI callback registered.
D:\StablediffFORGE\webui\extensions\Stable-Diffusion-WebUI-TensorRT\ui_trt.py:414: GradioDeprecationWarning: unexpected argument for Dropdown: default
  version = gr.Dropdown(
No config file found for 3d-render-v2. You can generate it in the LoRA tab.
No config file found for Add More Details - Detail Enhancer. You can generate it in the LoRA tab.
No config file found for add_detail. You can generate it in the LoRA tab.
No config file found for aidma-Image Upgrader-v0.1. You can generate it in the LoRA tab.
No config file found for aidmaImageUpgrader-FLUX-V0.1. You can generate it in the LoRA tab.
No config file found for CharacterDesign-FluxV2. You can generate it in the LoRA tab.
No config file found for COOLKIDS_MERGE_V2.5. You can generate it in the LoRA tab.
No config file found for COOLKIDS_XL_0.3_RC. You can generate it in the LoRA tab.
No config file found for Dressed animals. You can generate it in the LoRA tab.
No config file found for F2D-000003. You can generate it in the LoRA tab.
No config file found for flat childrenXX. You can generate it in the LoRA tab.
No config file found for Flat style-000014. You can generate it in the LoRA tab.
No config file found for flaticon_v1_2. You can generate it in the LoRA tab.
No config file found for flat_illustration. You can generate it in the LoRA tab.
No config file found for game_icon_v1.0. You can generate it in the LoRA tab.
No config file found for hand v1 flux. You can generate it in the LoRA tab.
No config file found for hand v1. You can generate it in the LoRA tab.
No config file found for Harrlogos_v2.0. You can generate it in the LoRA tab.
No config file found for Japanese_style_Minimalist_Line_Illustrations. You can generate it in the LoRA tab.
No config file found for J_cartoon. You can generate it in the LoRA tab.
No config file found for LogoRedmondV2-Logo-LogoRedmAF. You can generate it in the LoRA tab.
No config file found for LowpolySDXL. You can generate it in the LoRA tab.
No config file found for Minimalist_flat_icons_XL-000006. You can generate it in the LoRA tab.
No config file found for more_details. You can generate it in the LoRA tab.
No config file found for pixel-art-xl-v1.1. You can generate it in the LoRA tab.
No config file found for pixel_f2. You can generate it in the LoRA tab.
No config file found for S1-Kurzgesagt_Dreamlike-000008. You can generate it in the LoRA tab.
No config file found for StickersRedmond. You can generate it in the LoRA tab.
No config file found for Stylized_Setting_SDXL. You can generate it in the LoRA tab.
No config file found for sxz-icons-v5. You can generate it in the LoRA tab.
No config file found for sxz-texture-sdxl. You can generate it in the LoRA tab.
No config file found for TShirtDesignRedmondV2-Tshirtdesign-TshirtDesignAF. You can generate it in the LoRA tab.
No config file found for UiUX-SDXL. You can generate it in the LoRA tab.
No config file found for vectorL. You can generate it in the LoRA tab.
No config file found for Vector_illustration_V2. You can generate it in the LoRA tab.
No config file found for VintageDrawing01-00_CE_SDXL_128OT. You can generate it in the LoRA tab.
D:\StablediffFORGE\webui\extensions\Stable-Diffusion-WebUI-TensorRT\ui_trt.py:614: GradioDeprecationWarning: unexpected argument for Dropdown: default
  trt_lora_dropdown = gr.Dropdown(
Model selected: {'checkpoint_info': {'filename': 'D:\\StablediffFORGE\\webui\\models\\Stable-diffusion\\juggernautXL_v9Rundiffusionphoto2.safetensors', 'hash': '799b5005'}, 'additional_modules': ['D:\\StablediffFORGE\\webui\\models\\VAE\\sdxlVAE_sdxlVAE.safetensors'], 'unet_storage_dtype': None}
Using online LoRAs in FP16: False
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 54.5s (prepare environment: 21.1s, import torch: 11.3s, other imports: 1.1s, load scripts: 17.6s, create ui: 2.0s, gradio launch: 1.1s).
Environment vars changed: {'stream': False, 'inference_memory': 1024.0, 'pin_shared_memory': False}
[GPU Setting] You will use 87.50% GPU memory (7167.00 MB) to load weights, and use 12.50% GPU memory (1024.00 MB) to do matrix computation.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: f2.0.1v1.10.1-previous-501-g668e87f9
Commit hash: 668e87f920be30001bb87214d9001bf59f2da275
Launching Web UI with arguments: --xformers --opt-sdp-attention --medvram-sdxl --theme dark --medvram
Arg --medvram is removed in Forge.
Now memory management is fully automatic and you do not need any command flags.
Please just remove this flag.
In extreme cases, if you want to force previous lowvram/medvram behaviors, please use --always-offload-from-vram
Arg --medvram-sdxl is removed in Forge.
Now memory management is fully automatic and you do not need any command flags.
Please just remove this flag.
In extreme cases, if you want to force previous lowvram/medvram behaviors, please use --always-offload-from-vram
Total VRAM 8192 MB, total RAM 32374 MB
pytorch version: 2.3.1+cu121
xformers version: 0.0.27
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 2070 SUPER : native
Hint: your device supports --cuda-malloc for potential speed improvements.
VAE dtype preferences: [torch.float32] -> torch.float32
CUDA Using Stream: False
Using xformers cross attention
Using xformers attention for VAE
ControlNet preprocessor location: D:\StablediffFORGE\webui\models\ControlNetPreprocessor
[-] ADetailer initialized. version: 24.9.0, num models: 10
*** Error loading script: animatediff.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff.py", line 10, in <module>
        from scripts.animatediff_infv2v import AnimateDiffInfV2V
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_infv2v.py", line 5, in <module>
        from ldm_patched.modules.model_management import get_torch_device, soft_empty_cache
    ModuleNotFoundError: No module named 'ldm_patched'

---
*** Error loading script: animatediff_infotext.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_infotext.py", line 6, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_infv2v.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_infv2v.py", line 5, in <module>
        from ldm_patched.modules.model_management import get_torch_device, soft_empty_cache
    ModuleNotFoundError: No module named 'ldm_patched'

---
*** Error loading script: animatediff_latent.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_latent.py", line 10, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_mm.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_output.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_output.py", line 15, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_prompt.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_prompt.py", line 7, in <module>
        from scripts.animatediff_infotext import write_params_txt
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_infotext.py", line 6, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_settings.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_settings.py", line 4, in <module>
        from scripts.animatediff_ui import supported_save_formats
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff_ui.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-forge-animatediff\scripts\animatediff_mm.py", line 5, in <module>
        from modules_forge.unet_patcher import UnetPatcher
    ModuleNotFoundError: No module named 'modules_forge.unet_patcher'

---
*** Error loading script: animatediff.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff.py", line 10, in <module>
        from scripts.animatediff_infv2v import AnimateDiffInfV2V
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_infv2v.py", line 10, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 9, in <module>
        from motion_module import MotionWrapper, MotionModuleType
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\motion_module.py", line 10, in <module>
        from ldm.modules.attention import FeedForward
    ModuleNotFoundError: No module named 'ldm'

---
*** Error loading script: animatediff_freeinit.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_freeinit.py", line 9, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 9, in <module>
        from motion_module import MotionWrapper, MotionModuleType
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\motion_module.py", line 10, in <module>
        from ldm.modules.attention import FeedForward
    ModuleNotFoundError: No module named 'ldm'

---
*** Error loading script: animatediff_infotext.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_infotext.py", line 6, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 9, in <module>
        from motion_module import MotionWrapper, MotionModuleType
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\motion_module.py", line 10, in <module>
        from ldm.modules.attention import FeedForward
    ModuleNotFoundError: No module named 'ldm'

---
*** Error loading script: animatediff_infv2v.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_infv2v.py", line 10, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 9, in <module>
        from motion_module import MotionWrapper, MotionModuleType
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\motion_module.py", line 10, in <module>
        from ldm.modules.attention import FeedForward
    ModuleNotFoundError: No module named 'ldm'

---
*** Error loading script: animatediff_latent.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_latent.py", line 10, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 9, in <module>
        from motion_module import MotionWrapper, MotionModuleType
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\motion_module.py", line 10, in <module>
        from ldm.modules.attention import FeedForward
    ModuleNotFoundError: No module named 'ldm'

---
*** Error loading script: animatediff_mm.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 9, in <module>
        from motion_module import MotionWrapper, MotionModuleType
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\motion_module.py", line 10, in <module>
        from ldm.modules.attention import FeedForward
    ModuleNotFoundError: No module named 'ldm'

---
*** Error loading script: animatediff_output.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_output.py", line 15, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 9, in <module>
        from motion_module import MotionWrapper, MotionModuleType
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\motion_module.py", line 10, in <module>
        from ldm.modules.attention import FeedForward
    ModuleNotFoundError: No module named 'ldm'

---
*** Error loading script: animatediff_prompt.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_prompt.py", line 7, in <module>
        from scripts.animatediff_infotext import write_params_txt
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_infotext.py", line 6, in <module>
        from scripts.animatediff_ui import AnimateDiffProcess
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 9, in <module>
        from motion_module import MotionWrapper, MotionModuleType
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\motion_module.py", line 10, in <module>
        from ldm.modules.attention import FeedForward
    ModuleNotFoundError: No module named 'ldm'

---
*** Error loading script: animatediff_settings.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_settings.py", line 4, in <module>
        from scripts.animatediff_ui import supported_save_formats
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 9, in <module>
        from motion_module import MotionWrapper, MotionModuleType
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\motion_module.py", line 10, in <module>
        from ldm.modules.attention import FeedForward
    ModuleNotFoundError: No module named 'ldm'

---
*** Error loading script: animatediff_ui.py
    Traceback (most recent call last):
      File "D:\StablediffFORGE\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\StablediffFORGE\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 12, in <module>
        from scripts.animatediff_mm import mm_animatediff as motion_module
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 9, in <module>
        from motion_module import MotionWrapper, MotionModuleType
      File "D:\StablediffFORGE\webui\extensions\sd-webui-animatediff\motion_module.py", line 10, in <module>
        from ldm.modules.attention import FeedForward
    ModuleNotFoundError: No module named 'ldm'

---
2024-09-08 10:30:32,031 - ControlNet - INFO - ControlNet UI callback registered.
D:\StablediffFORGE\webui\extensions\Stable-Diffusion-WebUI-TensorRT\ui_trt.py:414: GradioDeprecationWarning: unexpected argument for Dropdown: default
  version = gr.Dropdown(
No config file found for 3d-render-v2. You can generate it in the LoRA tab.
No config file found for Add More Details - Detail Enhancer. You can generate it in the LoRA tab.
No config file found for add_detail. You can generate it in the LoRA tab.
No config file found for aidma-Image Upgrader-v0.1. You can generate it in the LoRA tab.
No config file found for aidmaImageUpgrader-FLUX-V0.1. You can generate it in the LoRA tab.
No config file found for CharacterDesign-FluxV2. You can generate it in the LoRA tab.
No config file found for COOLKIDS_MERGE_V2.5. You can generate it in the LoRA tab.
No config file found for COOLKIDS_XL_0.3_RC. You can generate it in the LoRA tab.
No config file found for Dressed animals. You can generate it in the LoRA tab.
No config file found for F2D-000003. You can generate it in the LoRA tab.
No config file found for flat childrenXX. You can generate it in the LoRA tab.
No config file found for Flat style-000014. You can generate it in the LoRA tab.
No config file found for flaticon_v1_2. You can generate it in the LoRA tab.
No config file found for flat_illustration. You can generate it in the LoRA tab.
No config file found for game_icon_v1.0. You can generate it in the LoRA tab.
No config file found for hand v1 flux. You can generate it in the LoRA tab.
No config file found for hand v1. You can generate it in the LoRA tab.
No config file found for Harrlogos_v2.0. You can generate it in the LoRA tab.
No config file found for Japanese_style_Minimalist_Line_Illustrations. You can generate it in the LoRA tab.
No config file found for J_cartoon. You can generate it in the LoRA tab.
No config file found for LogoRedmondV2-Logo-LogoRedmAF. You can generate it in the LoRA tab.
No config file found for LowpolySDXL. You can generate it in the LoRA tab.
No config file found for Minimalist_flat_icons_XL-000006. You can generate it in the LoRA tab.
No config file found for more_details. You can generate it in the LoRA tab.
No config file found for pixel-art-xl-v1.1. You can generate it in the LoRA tab.
No config file found for pixel_f2. You can generate it in the LoRA tab.
No config file found for S1-Kurzgesagt_Dreamlike-000008. You can generate it in the LoRA tab.
No config file found for StickersRedmond. You can generate it in the LoRA tab.
No config file found for Stylized_Setting_SDXL. You can generate it in the LoRA tab.
No config file found for sxz-icons-v5. You can generate it in the LoRA tab.
No config file found for sxz-texture-sdxl. You can generate it in the LoRA tab.
No config file found for TShirtDesignRedmondV2-Tshirtdesign-TshirtDesignAF. You can generate it in the LoRA tab.
No config file found for UiUX-SDXL. You can generate it in the LoRA tab.
No config file found for vectorL. You can generate it in the LoRA tab.
No config file found for Vector_illustration_V2. You can generate it in the LoRA tab.
No config file found for VintageDrawing01-00_CE_SDXL_128OT. You can generate it in the LoRA tab.
D:\StablediffFORGE\webui\extensions\Stable-Diffusion-WebUI-TensorRT\ui_trt.py:614: GradioDeprecationWarning: unexpected argument for Dropdown: default
  trt_lora_dropdown = gr.Dropdown(
Model selected: {'checkpoint_info': {'filename': 'D:\\StablediffFORGE\\webui\\models\\Stable-diffusion\\juggernautXL_v9Rundiffusionphoto2.safetensors', 'hash': '799b5005'}, 'additional_modules': ['D:\\StablediffFORGE\\webui\\models\\VAE\\sdxlVAE_sdxlVAE.safetensors'], 'unet_storage_dtype': None}
Using online LoRAs in FP16: False
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 11.0s (prepare environment: 1.7s, import torch: 3.9s, other imports: 0.2s, load scripts: 2.0s, create ui: 1.9s, gradio launch: 1.1s).
Environment vars changed: {'stream': False, 'inference_memory': 1024.0, 'pin_shared_memory': False}
[GPU Setting] You will use 87.50% GPU memory (7167.00 MB) to load weights, and use 12.50% GPU memory (1024.00 MB) to do matrix computation.

Additional information

No response

skelentonio commented 1 month ago

you can fix this error by downloading unet_patcher.py into the modules_forge folder from an older version of forge: https://github.com/lllyasviel/stable-diffusion-webui-forge/blob/0af28699c45c1c5bf9cb6818caac6ce881123131/modules_forge/unet_patcher.py

However, even then there are more errors. Once you try to load any models, you will get: AttributeError: 'FakeInitialModel' object has no attribute 'is_sdxl'

Looking into a solution to this, no luck yet. The a1111 version of animatediff has the same error.

ryandonahue1 commented 1 month ago

Any luck @skelentonio ?

skelentonio commented 1 month ago

Any luck @skelentonio ?

the problem seems to run pretty deep, i think a lot of reworking would be needed to get it working again. for now, probably the only workaround is to use an old forge version such as https://github.com/lllyasviel/stable-diffusion-webui-forge/tree/0af28699c45c1c5bf9cb6818caac6ce881123131