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

TypeError: forward() got an unexpected keyword argument #34

Open
will-mrtr opened this issue Mar 16, 2023 · 7 comments
Open

TypeError: forward() got an unexpected keyword argument #34

will-mrtr opened this issue Mar 16, 2023 · 7 comments

Comments

@will-mrtr
Copy link

will-mrtr commented Mar 16, 2023

Continuing from an earlier issue, but has now spread to every argument.

Have been getting this error every single time, after a great deal of debugging in an effort to get this code to run.
I can not figure out why this error persists, as from what Ive seen, this method is used for every single example of building an inference pipeline with Diffusers.
Some help here would be greatly appreciated because something could be bugged.

Screenshot 2023-03-16 at 3 51 19 PM

@haofanwang
Copy link
Owner

What is your pipe_control? How do you load the model? @will-mrtr

@will-mrtr
Copy link
Author

The model is being loaded through huggingface hub:

Screenshot 2023-03-20 at 9 23 16 AM

@haofanwang
Copy link
Owner

As shown in the README.md, you should use StableDiffusionControlNetInpaintPipeline. @will-mrtr

@will-mrtr
Copy link
Author

Yeah I tried that too, I ran everything as you had it in the readme to begin, doesn't work.
Diffusers is installed correctly, there might be something wrong with the pipelines - cant even run the pipeline script you gave without it breaking.
Im probably missing something here as well, so some more help would be greatly appreciated.

Screenshot 2023-03-21 at 9 17 14 AM

@haofanwang
Copy link
Owner

It seems that there is no such a pipeline in your env. What is your diffusers version? You should use the provided commit id when installing diffusers. @will-mrtr

Anyway, I will make this tutorial compatible to the latest diffusers soon.

@will-mrtr
Copy link
Author

Awesome, thanks for all your help.
I'll reinstall diffusers with the provided commit id

@will-mrtr
Copy link
Author

Hi there @haofanwang , thanks for your assistance here, but I am still having the same problem after more troubleshooting and following the exact instructions in the README.md

How can I properly import this pipeline in the environment and also into the __init__.py files?

For whatever reason, the StableDiffusionControlNetInpaintPipeline will not import from the file.
I placed the __init__.py files in the two correct paths and also installed diffusers from the correct commit id.
I do not know what the problem is.

Screenshot 2023-03-22 at 3 19 15 PM

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

2 participants