EfficientNet-PyTorch icon indicating copy to clipboard operation
EfficientNet-PyTorch copied to clipboard

how to use the include_top parameter in pretrained model?

Open lck666666 opened this issue 3 years ago • 0 comments

I can use the include_top parameter in EfficientNet.from_name, but in EfficientNet.from_pretrained, I cannot use that. So, if I want to change the last layer of the pretrained model by self.base_model = nn.Sequential(*list(base_model.children())[:-1]), it has the error in forward function.

lck666666 avatar Oct 15 '22 03:10 lck666666