Skip to content

RuntimeError: The shape of the 2D attn_mask is torch.Size([77, 77]), but should be (1, 1). #73

@cainiaoniao

Description

@cainiaoniao

您好作者,想请教一个问题,定义了一个 a photo of an object的模板,经过token处理后输入到Anomalyclip的文本编码器中遇到了掩码尺寸的错误,RuntimeError: The shape of the 2D attn_mask is torch.Size([77, 77]), but should be (1, 1).请问您有好的建议吗

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