Skip to content

[Bug]: AnimateDiff - WARNING - No motion module detected #566

@Quest79

Description

@Quest79

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Have you read FAQ on README?

  • I have updated WebUI and this extension to the latest version

What happened?

Error using AnimateDiff when rendering animation

The models show up in stable-diffusion-webui v1.10.1 (latest) https://i.imgur.com/sdwqD9Q.png

The models are in the right place (or they wouldent show up in dropdown, right?)
https://i.imgur.com/UEaKjxO.png

Steps to reproduce the problem

I click the button to render an animation and it give console error

What should have happened?

It should see the models and do the animation

Commit where the problem happens

See console log

What browsers do you use to access the UI ?

No response

Command Line Arguments

???

Console logs

2025-01-28 10:33:27,828 - AnimateDiff - INFO - Guessed mm_sd_v14.ckpt architecture: MotionModuleType.AnimateDiffV1
*** Error running before_process: C:\stable-diffusion-webui\webui\extensions\sd-webui-animatediff\scripts\animatediff.py
    Traceback (most recent call last):
      File "C:\stable-diffusion-webui\webui\modules\scripts.py", line 824, in before_process
        script.before_process(p, *script_args)
      File "C:\stable-diffusion-webui\webui\extensions\sd-webui-animatediff\scripts\animatediff.py", line 64, in before_process
        motion_module.inject(p.sd_model, params.model)
      File "C:\stable-diffusion-webui\webui\extensions\sd-webui-animatediff\scripts\animatediff_mm.py", line 71, in inject
        assert sd_model.is_sdxl == self.mm.is_xl, f"Motion module incompatible with SD. You are using {sd_ver} with {self.mm.mm_type}."
    AssertionError: Motion module incompatible with SD. You are using SDXL with MotionModuleType.AnimateDiffV1.

---
  0%|                                                                                                                        | 0/20 [00:00<?, ?it/s]2025-01-28 10:33:30,007 - AnimateDiff - WARNING - No motion module detected, falling back to the original forward. You are most likely using !Adetailer. !Adetailer post-process your outputs sequentially, and there will NOT be motion module in your UNet, so there might be NO temporal consistency within the inpainted face. Use at your own risk. If you really want to pursue inpainting with AnimateDiff inserted into UNet, use Segment Anything to generate masks for each frame and inpaint them with AnimateDiff + ControlNet. Note that my proposal might be good or bad, do your own research to figure out the best way.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  6.95it/s]
*** Error running postprocess_batch_list: C:\stable-diffusion-webui\webui\extensions\sd-webui-animatediff\scripts\animatediff.py02<00:00,  6.98it/s]
    Traceback (most recent call last):
      File "C:\stable-diffusion-webui\webui\modules\scripts.py", line 888, in postprocess_batch_list
        script.postprocess_batch_list(p, pp, *script_args, **kwargs)
      File "C:\stable-diffusion-webui\webui\extensions\sd-webui-animatediff\scripts\animatediff.py", line 84, in postprocess_batch_list
        params.prompt_scheduler.save_infotext_img(p)
    AttributeError: 'NoneType' object has no attribute 'save_infotext_img'

---
*** Error running postprocess: C:\stable-diffusion-webui\webui\extensions\sd-webui-animatediff\scripts\animatediff.py
    Traceback (most recent call last):
      File "C:\stable-diffusion-webui\webui\modules\scripts.py", line 872, in postprocess
        script.postprocess(p, processed, *script_args)
      File "C:\stable-diffusion-webui\webui\extensions\sd-webui-animatediff\scripts\animatediff.py", line 94, in postprocess
        params.prompt_scheduler.save_infotext_txt(res)
    AttributeError: 'NoneType' object has no attribute 'save_infotext_txt'

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions