I trained a model of Efficentnet-b6(Architechture is as follows):
https://github.com/lukemelas/EfficientNet-PyTorch
Now, I tried to load a model I trained with it:
checkpoint = torch.load('model.pth', map_location=torch.device('cpu'))
model.load_state_dict(checkpoint, strict=False)
but then I got the following error:
_IncompatibleKeys
missing_keys=['_conv_stem.weight', '_bn0.weight', '_bn0.bias', ...]
unexpected_keys=['module._conv_stem.weight', 'module._bn0.weight', 'module._bn0.bias', ...]
Please let me know how can I fix that, what am I missing? Thank you!