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

Error: forward_orig() takes from 7 to 9 positional arguments but 10 were given #109

Open
myprivacygithub opened this issue Nov 18, 2024 · 10 comments

Comments

@myprivacygithub
Copy link

Error: forward_orig() takes from 7 to 9 positional arguments but 10 were given

@acc3pt1337
Copy link

Go into your comfyui folder > cmd > git reset --hard cc9cf6d1bd957d764ad418258b61d7e08187573b

Then start your comfy, it should help.

@recycleaway7
Copy link

Go into your comfyui folder > cmd > git reset --hard cc9cf6d1bd957d764ad418258b61d7e08187573b

Then start your comfy, it should help.

I was running into this error whenever SamplerCustomAdvanced came up, and running this command fixed it for me. Thanks! I guess I'll avoid updating for a few days.

@feanorknd
Copy link

Go into your comfyui folder > cmd > git reset --hard cc9cf6d1bd957d764ad418258b61d7e08187573b

Then start your comfy, it should help.

so, is this a comfyui update breaking support for PuLID and must stay at this commit to make it run?

@ahkimkoo
Copy link

这个有解吗?

@CaptailTyler
Copy link

CaptailTyler commented Nov 29, 2024

The issue has now been fixed. Just update your FLUX PULID vis ComfyUI Manager.

_This worked for me, without having to roll back to the previous version of ComfyUI:
comfyanonymous/ComfyUI#5601

Modified 1 line in model.py
C:\ComfyUI\ComfyUI_windows_portable\ComfyUI\comfy\ldm\flux\model.py

Line 159 - Changed back to Old Working Line:
Old Working: out = self.forward_orig(img, img_ids, context, txt_ids, timestep, y, guidance, control)
New Broken: out = self.forward_orig(img, img_ids, context, txt_ids, timestep, y, guidance, control, transformer_options)_

@myprivacygithub
Copy link
Author

The issue has now been fixed. Just update your FLUX PULID vis ComfyUI Manager.

_This worked for me, without having to roll back to the previous version of ComfyUI: comfyanonymous/ComfyUI#5601

Modified 1 line in model.py C:\ComfyUI\ComfyUI_windows_portable\ComfyUI\comfy\ldm\flux\model.py

Line 159 - Changed back to Old Working Line: Old Working: out = self.forward_orig(img, img_ids, context, txt_ids, timestep, y, guidance, control) New Broken: out = self.forward_orig(img, img_ids, context, txt_ids, timestep, y, guidance, control, transformer_options)_

This works for me, thanks.

@Melmahovskye
Copy link

out = self.forward_orig(img, img_ids, context, txt_ids, timestep, y, guide, control)

I got a new error
image

@Andypwk
Copy link

Andypwk commented Dec 7, 2024

Go into your comfyui folder > cmd > git reset --hard cc9cf6d1bd957d764ad418258b61d7e08187573b

Then start your comfy, it should help.

u r my hero ^ ^ thx

@Nirmal2000
Copy link

I keep getting the same error. Is changing branch the only way?

@Alexanderaptx
Copy link

New Broken: out = self.forward_orig(img, img_ids, context, txt_ids, timestep, y, guidance, control, transformer_options)_

THANKS for your solution! I wonder if removing 'transformer_options' will influence the quality of output image? Seems the output after applying this fix is pretty unclear and vague.

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

10 participants