Skip to content

The way to apply attention mask. #67

@lzyhha

Description

@lzyhha

Hello, in https://github.com/HiDream-ai/HiDream-I1/blob/main/hi_diffusers/models/attention_processor.py#L71, I notice that the attention mask is applied by multiplying mask and key.
Can you please explain why not fill -inf to the attention like pytorch?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions