Skip to content

KeyError: "MaskRCNN: 'efficientformer_l1_feat is not in the models registry'" #63

Description

@QiqLiang

I want to use the efficientformer_l1 as backbone in the task of object detection for a single image.
I use the following code:

from mmdet.apis import init_detector, inference_detector config_file = "./configs/mask_rcnn_efficientformer_l1_fpn_1x_coco.py" checkpoint_file = "./checkpoints/efficientformer_l1_coco.pth" model = init_detector(config_file, checkpoint_file, device="cpu") img = "./dogs.jpg" result = inference_detector(model, img) model.show_result(img, result, model.CLASSES, out_file="result.jpg")

but it shows: KeyError: "MaskRCNN: 'efficientformer_l1_feat is not in the models registry'", what should I do? how can I add the efficientformer model in the registry? thanks for answering this question!!

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