Open Dendrobium123 opened 6 months ago
Thanks for your attention. You can load the pre-trained model of vgg16 more easily, like this:
import torch import torchvision.models as models
def init_vgg16():
vgg = models.vgg16(pretrained=True)
return vgg
vgg_model = init_vgg16()