You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!!
The text was updated successfully, but these errors were encountered:
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!!
The text was updated successfully, but these errors were encountered: