Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Spacei567 opened this issue Apr 24, 2022 · 1 comment
Open

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

Spacei567 opened this issue Apr 24, 2022 · 1 comment

Comments

@Spacei567
Copy link

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?

@Lucky0775
Copy link

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?

Hi,Did you solve this problem? I also meet this problem,can you tell me how to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants