Skip to content

External predictions with mapanything model not working #141

@omaralvarez

Description

@omaralvarez

I'm getting weird results when usin external model inference with the mapanything model name. I think it is due to using:

model = init_model_from_config(args.model_name, device=device)

And the function not initializing the model weights to the model checkpoint, since normal inference with MapAnything class are working fine:

model = MapAnything.from_pretrained("facebook/map-anything").to(device)

The rest of the external models work fine.

Am I making any mistakes?

By the way, great work. Much appreciated!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions