continue-revolution / sd-webui-animatediff

AnimateDiff for AUTOMATIC1111 Stable Diffusion WebUI
Other
3.11k stars 258 forks source link

[Bug]: ControlNet V2V inpaint error (T2I) #355

Closed red-sponge closed 8 months ago

red-sponge commented 11 months ago

Is there an existing issue for this?

Have you read FAQ on README?

What happened?

When I run InPaint, I get an error and the video doesn't generate properly. (T2I) 스크린샷 2023-12-02 200139

Steps to reproduce the problem

  1. Go to ControlNet Inpaint Unit

  2. Enter a folder which contains two sub-folders image and mask in Input Directory of Batch tab 스크린샷 2023-12-02 212445

  3. Generate with enable Animatediff 스크린샷 2023-12-02 201636

What should have happened?

New footage is only generated for the masked area

Commit where the problem happens

webui: version: [v1.6.0-2-g4afaaf8a] extension: [d2e77f40]

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--xformers --api

Console logs

*** Error running process: C:\SD\webui_160-2\extensions\sd-webui-controlnet\scripts\controlnet.py
    Traceback (most recent call last):
      File "C:\SD\webui_160-2\modules\scripts.py", line 619, in process
        script.process(p, *script_args)
      File "C:\SD\webui_160-2\extensions\sd-webui-controlnet\scripts\controlnet.py", line 993, in process
        self.controlnet_hack(p)
      File "C:\SD\webui_160-2\extensions\sd-webui-controlnet\scripts\controlnet.py", line 982, in controlnet_hack
        self.controlnet_main_entry(p)
      File "C:\SD\webui_160-2\extensions\sd-webui-animatediff\scripts\animatediff_cn.py", line 496, in hacked_main_entry        final_inpaint_mask = final_inpaint_feed[0, 3, :, :].astype(np.float32)
    IndexError: too many indices for array: array is 3-dimensional, but 4 were indexed

Additional information

No response

xilai0715 commented 11 months ago

The same problem. image

continue-revolution commented 8 months ago

this problem has been fixed, the doc will be updated in a day