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: RegionalDiffusionXLPipeline.__init__() missing 2 required positional arguments: 'text_encoder_2' and 'tokenizer_2' #41

Open
hq0709 opened this issue Apr 10, 2024 · 4 comments

Comments

@hq0709
Copy link

hq0709 commented Apr 10, 2024

TypeError: RegionalDiffusionXLPipeline.init() missing 2 required positional arguments: 'text_encoder_2' and 'tokenizer_2'

@BitCodingWalkin
Copy link
Collaborator

Thank you for your feedback, but the information you have provided is limited, please give more detailed configuration so that we can help you.
For now, considering the error message, i think that is because you use RegionalDiffusionXLPipeline which only supports SDXL models. I suggest you to check if you used sdv1.4/1.5/2.0/2.1 models , if so, you can use RegionalDiffusionPipeline which is compatible with these models for generation.

@hq0709
Copy link
Author

hq0709 commented Apr 10, 2024

Thanks for your reply. I have this message when I try to utilize the anything-v3 model, as well as the absolutereality model. Should I change the pipeline? Thanks!

@BitCodingWalkin
Copy link
Collaborator

Anything-v3 is SDv1.4/1.5 based architecture, so you can use RegionalDiffusionPipeline to load the model. The reason why you got this error is because SDXL model have an extra textencoder and an extra tokenizer compare to SD v1.4/1.5 models, so if you use RegionalDiffusionXLPipeline it will report the model is missing some components. I just update the REAMDE to clarify the issuse, thank you for your gentle remind.

@hq0709
Copy link
Author

hq0709 commented Apr 10, 2024

Thanks for the explanation :)

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