Skip to content

Pytorch version >=1.0 How to load VGG16 pretrain in VGG16.T7? #105

@Spacei567

Description

@Spacei567

The pytorch's version >=1.0,so I can't use from torch.utils.serialization import load_lua

and I can't run vgglua = load_lua(os.path.join(model_dir, 'vgg16.t7')) in utils.py

if I choose import torchfile and vgglua = torchfile.load(os.path.join(model_dir, 'vgg16.t7')), will wrong in TypeError: unhashable type: 'numpy.ndarray'

What should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions