RPG-DiffusionMaster icon indicating copy to clipboard operation
RPG-DiffusionMaster copied to clipboard

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

Open hq0709 opened this issue 1 year ago • 4 comments

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

hq0709 avatar Apr 10 '24 07:04 hq0709

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.

ZhaochenYu0201 avatar Apr 10 '24 08:04 ZhaochenYu0201

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!

hq0709 avatar Apr 10 '24 08:04 hq0709

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.

ZhaochenYu0201 avatar Apr 10 '24 09:04 ZhaochenYu0201

Thanks for the explanation :)

hq0709 avatar Apr 10 '24 09:04 hq0709