continue-revolution / sd-webui-animatediff

AnimateDiff for AUTOMATIC1111 Stable Diffusion WebUI
Other
3.04k stars 253 forks source link

AttributeError: 'ControlModel' object has no attribute 'reset' #411

Closed protector131090 closed 7 months ago

protector131090 commented 7 months ago

Is there an existing issue for this?

Have you read FAQ on README?

What happened?

This ERROR only appears when using ANimatediff with controlnet.... after updating

2024-01-24 11:33:23,217 - ControlNet - INFO - ControlNet model control_v11p_sd15_openpose [cab727d4] loaded. ** Error running process: C:\sd.webui\webui\extensions\sd-webui-controlnet\scripts[controlnet.py](https://controlnet.py/) Traceback (most recent call last): File "C:\sd.webui\webui\modules[scripts.py](https://scripts.py/)", line 619, in process script.process(p, script_args) File "C:\sd.webui\webui\extensions\sd-webui-controlnet\scripts[controlnet.py](https://controlnet.py/)", line 1117, in process self.controlnet_hack(p) File "C:\sd.webui\webui\extensions\sd-webui-controlnet\scripts[controlnet.py](https://controlnet.py/)", line 1102, in controlnet_hack self.controlnet_main_entry(p) File "C:\sd.webui\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'

Steps to reproduce the problem

Using Animatediff with controlnet

What should have happened?

no erorrs

Commit where the problem happens

A1111

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No

Console logs

2024-01-24 11:33:23,217 - ControlNet - INFO - ControlNet model control_v11p_sd15_openpose [cab727d4] loaded.
*** Error running process: C:\sd.webui\webui\extensions\sd-webui-controlnet\scripts\controlnet.py
    Traceback (most recent call last):
      File "C:\sd.webui\webui\modules\scripts.py", line 619, in process
        script.process(p, *script_args)
      File "C:\sd.webui\webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1117, in process
        self.controlnet_hack(p)
      File "C:\sd.webui\webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1102, in controlnet_hack
        self.controlnet_main_entry(p)
      File "C:\sd.webui\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'

Additional information

CorolNet works fine without Animatediff

protector131090 commented 7 months ago

huchenlei commented 14 hours ago

File an issue in https://github.com/continue-revolution/sd-webui-animatediff please. control_model_guess.py is not supposed to be exposed, and we don't guarantee that the signature does not change.

Here the guess control model function returns a tuple instead of a single value now.

continue-revolution commented 7 months ago

https://github.com/continue-revolution/sd-webui-animatediff/issues/363#issuecomment-1845671560

For the time being, please revert to this commit. Any update issue will be resolved in v2, which may take several days / weeks depending on my availability.

Helio1997hub commented 7 months ago

I have also encountered this problem. May I ask if this problem has been resolved?

Danny-707 commented 7 months ago

I have the same problem. Everything worked on one of the earlier versions, but after some update, it stopped working with animateDiff. Can anyone advise on how to install previous versions of controlNet?

Dreason8 commented 7 months ago

Same issue here, none of the Controlnet models are working with Animatediff