Skip to content

Import error #23

@Yuansen-Huang

Description

@Yuansen-Huang

Thanks for your great work! I've done preparations according to your instructions, but when I run "bash scripts/train.sh", there are several packages not in the environment such as peft and positional_encoding. Besides, it also raises the error “ from lavis.models.blip2_models.osrt.layers import SlotAttention, MLP, MultiheadCrossAttention, MultiheadSelfAttention, MultiheadCrossAttentionText
ImportError: cannot import name 'MultiheadCrossAttention' from 'lavis.models.blip2_models.osrt.layers' (/data/ELM-main/lavis/models/blip2_models/osrt/layers.py)".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions