guoyww / AnimateDiff

Official implementation of AnimateDiff.
https://animatediff.github.io
Apache License 2.0
10.26k stars 842 forks source link

Latest update with this error issue please help #282

Open anotherpop opened 7 months ago

anotherpop commented 7 months ago

Latest update with this error issue please help.

** Error running process: D:\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py Traceback (most recent call last): File "D:\stable-diffusion-webui\modules\scripts.py", line 718, in process script.process(p, script_args) File "D:\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1138, in process self.controlnet_hack(p) File "D:\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1123, in controlnet_hack self.controlnet_main_entry(p) File "D:\stable-diffusion-webui\extensions\sd-webui-animatediff\scripts\animatediff_cn.py", line 248, in hacked_main_entry model_net.reset() AttributeError: 'ControlModel' object has no attribute 'reset'


MrSassyGit commented 7 months ago

I have the exact same issue. New Automatic1111 install, only Animatediff and Controlnet extension installed. Both animatediff and controlnet work fine independently but not together. Error shows but the video still renders but with no controlnet effect. 4070Ti Super with latest drivers Looking into solutions now, hope someone can help!

nitinmukesh commented 7 months ago

Same error. No solution

2024-02-10 17:22:43,628 - AnimateDiff - INFO - AnimateDiff process start.
2024-02-10 17:22:43,629 - AnimateDiff - INFO - Loading motion module mm_sd_v15_v2.ckpt from C:\stable_diffusion\stable-diffusion-webui\extensions\sd-webui-animatediff\model\mm_sd_v15_v2.ckpt
2024-02-10 17:22:45,330 - AnimateDiff - INFO - Guessed mm_sd_v15_v2.ckpt architecture: MotionModuleType.AnimateDiffV2
2024-02-10 17:22:46,993 - AnimateDiff - WARNING - Missing keys <All keys matched successfully>
2024-02-10 17:22:47,810 - AnimateDiff - INFO - Injecting motion module mm_sd_v15_v2.ckpt into SD1.5 UNet middle block.
2024-02-10 17:22:47,811 - AnimateDiff - INFO - Injecting motion module mm_sd_v15_v2.ckpt into SD1.5 UNet input blocks.
2024-02-10 17:22:47,811 - AnimateDiff - INFO - Injecting motion module mm_sd_v15_v2.ckpt into SD1.5 UNet output blocks.
2024-02-10 17:22:47,811 - AnimateDiff - INFO - Setting DDIM alpha.
2024-02-10 17:22:47,825 - AnimateDiff - INFO - Injection finished.
2024-02-10 17:22:47,826 - AnimateDiff - INFO - Hacking LoRA module to support motion LoRA
2024-02-10 17:22:47,826 - AnimateDiff - INFO - Hacking CFGDenoiser forward function.
2024-02-10 17:22:47,826 - AnimateDiff - INFO - Hacking ControlNet.
2024-02-10 17:22:48,996 - ControlNet - INFO - Loading model: control_v11p_sd15_openpose [cab727d4]
2024-02-10 17:22:50,323 - ControlNet - INFO - Loaded state_dict from [C:\stable_diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\models\control_v11p_sd15_openpose.pth]
2024-02-10 17:22:50,324 - ControlNet - INFO - controlnet_default_config
2024-02-10 17:22:51,912 - ControlNet - INFO - ControlNet model control_v11p_sd15_openpose [cab727d4](ControlModelType.ControlNet) loaded.
*** Error running process: C:\stable_diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py
    Traceback (most recent call last):
      File "C:\stable_diffusion\stable-diffusion-webui\modules\scripts.py", line 718, in process
        script.process(p, *script_args)
      File "C:\stable_diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1143, in process
        self.controlnet_hack(p)
      File "C:\stable_diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1128, in controlnet_hack
        self.controlnet_main_entry(p)
      File "C:\stable_diffusion\stable-diffusion-webui\extensions\sd-webui-animatediff\scripts\animatediff_cn.py", line 248, in hacked_main_entry
        model_net.reset()
    AttributeError: 'ControlModel' object has no attribute 'reset'
fulleclip commented 7 months ago

same mistake for me

davidmartinrius commented 7 months ago

same error here... but I did not find any solution yet

fulleclip commented 7 months ago

I just installed an update [2573b2b5] but I still get the same error

davidmartinrius commented 7 months ago

The only thing that worked for me is to go to an older CN branch. Explained here: https://github.com/continue-revolution/sd-webui-animatediff/issues/412#issuecomment-1913429785

Danny-707 commented 7 months ago

The only thing that worked for me is to go to an older CN branch. Explained here: continue-revolution/sd-webui-animatediff#412 (comment)

Thank you for the link! Could you please describe in a bit more detail what steps need to be taken? It says 'Navigate to extensions/sd-webui-controlnet in terminal', but I'm not sure which terminal it refers to.

Danny-707 commented 7 months ago

The only thing that worked for me is to go to an older CN branch. Explained here: continue-revolution/sd-webui-animatediff#412 (comment)

Thank you for the link! Could you please describe in a bit more detail what steps need to be taken? It says 'Navigate to extensions/sd-webui-controlnet in terminal', but I'm not sure which terminal it refers to.

"I figured it out) It's just that there was a little confusion because of the portable version of Git.

protector131090 commented 6 months ago

still no fix

morozig commented 5 months ago

Actually after updating animatediff to latest everything started working.