Skip to content

Unexpected key(s) in state_dict: "transformer.text_encoder.embeddings.position_ids".  #106

@vdorbala

Description

@vdorbala

When running the demo script, I get -
Unexpected key(s) in state_dict: "transformer.text_encoder.embeddings.position_ids".

while trying to load the model using -
model, postprocessor = torch.hub.load('ashkamath/mdetr:main', 'mdetr_efficientnetB5', pretrained=True, return_postprocessor=True)

Does the model not work anymore?

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