Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: TypeError: ImageEmbed.__new__() takes 3 positional arguments but 4 were given #545

Open
2 tasks done
tzhi4 opened this issue Jul 26, 2024 · 0 comments
Open
2 tasks done

Comments

@tzhi4
Copy link

tzhi4 commented Jul 26, 2024

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?

I followed the instructions for the "keyframe" parameter in Controlnet V2V and encountered an error.
屏幕截图 2024-07-27 073353

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

Is it an operational error? Or is it a bug?

Commit where the problem happens

webui: 版本: [v1.9.3] python: 3.10.11  •  torch: 2.3.0+cu121  •  xformers: 0.0.26.post1  •  gradio: 3.41.2
extension:

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

no

Console logs

2024-07-27 07:18:55,779 - AnimateDiff - INFO - AnimateDiff process start.
2024-07-27 07:18:55,779 - AnimateDiff - INFO - Motion module already injected. Trying to restore.
2024-07-27 07:18:55,779 - AnimateDiff - INFO - Restoring DDIM alpha.
2024-07-27 07:18:55,780 - AnimateDiff - INFO - Removing motion module from SD1.5 UNet input blocks.
2024-07-27 07:18:55,780 - AnimateDiff - INFO - Removing motion module from SD1.5 UNet output blocks.
2024-07-27 07:18:55,780 - AnimateDiff - INFO - Removing motion module from SD1.5 UNet middle block.
2024-07-27 07:18:55,780 - AnimateDiff - INFO - Removal finished.
2024-07-27 07:18:55,799 - AnimateDiff - INFO - Injecting motion module mm_sd15_AnimateLCM.safetensors into SD1.5 UNet middle block.
2024-07-27 07:18:55,799 - AnimateDiff - INFO - Injecting motion module mm_sd15_AnimateLCM.safetensors into SD1.5 UNet input blocks.
2024-07-27 07:18:55,799 - AnimateDiff - INFO - Injecting motion module mm_sd15_AnimateLCM.safetensors into SD1.5 UNet output blocks.
2024-07-27 07:18:55,800 - AnimateDiff - INFO - Setting DDIM alpha.
2024-07-27 07:18:55,805 - AnimateDiff - INFO - Injection finished.
2024-07-27 07:18:55,805 - AnimateDiff - INFO - AnimateDiff + ControlNet will generate 16 frames.
2024-07-27 07:18:55,876 - ControlNet - INFO - unit_separate = False, style_align = False
2024-07-27 07:18:55,876 - ControlNet - INFO - Loading model from cache: ip-adapter_sd15 [dbbc7cfe]
2024-07-27 07:18:55,877 - ControlNet - INFO - AnimateDiff + ControlNet ip-adapter-auto receive the following parameters:
2024-07-27 07:18:55,877 - ControlNet - INFO -   batch control images: D:\input\1
2024-07-27 07:18:55,877 - ControlNet - INFO -   batch control keyframe index: [0, 6, 8, 12]
2024-07-27 07:18:55,914 - ControlNet - INFO - Using preprocessor: ip-adapter-auto
2024-07-27 07:18:55,914 - ControlNet - INFO - preprocessor resolution = 600
2024-07-27 07:18:55,917 - ControlNet - INFO - ip-adapter-auto => ip-adapter_clip_h
*** Error running process: G:\sd-webui-aki\extensions\sd-webui-controlnet\scripts\controlnet.py
    Traceback (most recent call last):
      File "G:\sd-webui-aki\modules\scripts.py", line 825, in process
        script.process(p, *script_args)
      File "G:\sd-webui-aki\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1228, in process
        self.controlnet_hack(p)
      File "G:\sd-webui-aki\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1213, in controlnet_hack
        self.controlnet_main_entry(p)
      File "G:\sd-webui-aki\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1011, in controlnet_main_entry
        control = ad_process_control(controls)
      File "G:\sd-webui-aki\extensions\sd-webui-controlnet\scripts\controlnet.py", line 958, in ad_process_control
        c = ImageEmbed(c_cond, c.uncond_emb, True)
    TypeError: ImageEmbed.__new__() takes 3 positional arguments but 4 were given

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant