OaDsis / DerainCycleGAN

MIT License
46 stars 4 forks source link

The definition of 'load_lua' cannot be found #18

Open Dendrobium123 opened 6 months ago

Dendrobium123 commented 6 months ago

1712926255032

OaDsis commented 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():

Initialize the VGG16 model with pretrained weights

vgg = models.vgg16(pretrained=True)
return vgg

Use the function to get the model

vgg_model = init_vgg16()