cp_model.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:PaintsPytorch 作者: orashi 项目源码 文件源码
def def_netF():
    vgg16 = M.vgg16()
    vgg16.load_state_dict(torch.load('vgg16-397923af.pth'))
    vgg16.features = nn.Sequential(
        *list(vgg16.features.children())[:9]
    )
    for param in vgg16.parameters():
        param.requires_grad = False
    return vgg16.features
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号