Skip to content

There are bug in diffusers with sdxl #7

@Johnson-yue

Description

@Johnson-yue

software version :

diffusers == 0. 29.2

Bug1:

AttributeError: 'CLIPTextModelOutput' object has no attribute 'pooler_output'

Because text_encoder is CLIPTextModel , it output is transformers.modeling_outputs.BaseModelOutputWithPooling, so the output contain pooler_output .

But in text_encoder_2 is CLIPTextModelWithProjection, it output is transformers.models.clip.modeling_clip.CLIPTextModelOutput, it not have 'pooler_output' ,and in your code

pooled_prompt_embeds = prompt_embeds.pooler_output
, you try to get pooler_output in every text_encoder (both text_encoder and text_encoder_2), so it break!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions