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

AttributeError: 'UNet2DConditionModel' object has no attribute 'order' #1

Open
thanhhung0112 opened this issue Dec 19, 2023 · 6 comments

Comments

@thanhhung0112
Copy link

No description provided.

@sen-mao
Copy link

sen-mao commented Dec 19, 2023

No description provided.

Is the version of diffusers you are using 0.17.1 ?

@hutaiHang
Copy link
Owner

I'm sorry you encountered this problem, our code is too hasty.

Please note the code

image = pipe.call(prompt).images[0]

Not

image = pipe(prompt).images[0]

Because we rewrite the pipeline's call function. If you encounter any other issues, please provide more detailed description.

@thanhhung0112
Copy link
Author

thanhhung0112 commented Dec 19, 2023

Oh, this is my fault, I commented the line registering the pipeline, but i encounter another issue, TypeError: check_inputs() takes from 5 to 8 positional arguments but 9 were given.
I don't know why, I try to check the check_inputs method in the pipeline, it still passes 8 arguments. Can you tell me what's going on?

@hutaiHang
Copy link
Owner

Oh, this is my fault, I commented the line registering the pipeline, but i encounter another issue, TypeError: check_inputs() takes from 5 to 8 positional arguments but 9 were given. I don't know why, I try to check the check_inputs method in the pipeline, it still passes 8 arguments. Can you tell me what's going on?

Please update the version diffusersto 0.23.0, we have updated the requirement.txt. Thanks for your feedback.

@thanhhung0112
Copy link
Author

Oh, this is my fault, I commented the line registering the pipeline, but i encounter another issue, TypeError: check_inputs() takes from 5 to 8 positional arguments but 9 were given. I don't know why, I try to check the check_inputs method in the pipeline, it still passes 8 arguments. Can you tell me what's going on?

Please update the version diffusersto 0.23.0, we have updated the requirement.txt. Thanks for your feedback.

It works, thank you so much!!!, but i have another question, i try using your method with my personalized SD weight, but the generated image is quite bad in details of eyes. Have you ever seen this problem?

@hutaiHang
Copy link
Owner

Oh, this is my fault, I commented the line registering the pipeline, but i encounter another issue, TypeError: check_inputs() takes from 5 to 8 positional arguments but 9 were given. I don't know why, I try to check the check_inputs method in the pipeline, it still passes 8 arguments. Can you tell me what's going on?

Please update the version diffusersto 0.23.0, we have updated the requirement.txt. Thanks for your feedback.

It works, thank you so much!!!, but i have another question, i try using your method with my personalized SD weight, but the generated image is quite bad in details of eyes. Have you ever seen this problem?

Perhaps you need to adjust the keytime hyperparameter, similar to issue #7.

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

3 participants