import torch
from PIL import Image
import numpy as np
from effdet import get_efficientdet_config, EfficientDet
config = get_efficientdet_config('tf_efficientdet_d0')
model = EfficientDet(config, pretrained_backbone=True)
model.eval()
when I run this I am getting the error
Unexpected keys (bn2.bias, bn2.num_batches_tracked, bn2.running_mean, bn2.running_var, bn2.weight, classifier.bias, classifier.weight, conv_head.weight) found while loading pretrained weights. This may be expected if model is being adapted.
I researched some bit and got to know that this is because of timm builder but didn’t find any solutions so please anyone help me fix this.
I wanted to load the efficientdet weights but it resulted in an unexpected keys error