Skip to content

TypeError: 'NoneType' object is not callable #21

@buchuitoudegou

Description

@buchuitoudegou

os: ubuntu16.04
torch: 1.1.0
torchvision: 0.3.0
torchfile: 0.1.0

vgglua = torchfile.load(os.path.join(model_folder, 'vgg16.t7'))
vgg = Vgg16()
for (src, dst) in zip(vgglua.parameters()[0], vgg.parameters()):
        dst.data[:] = src

Error occured:

for (src, dst) in zip(vgglua.parameters()[0], vgg.parameters()):
TypeError: 'NoneType' object is not callable

a TypeError exception was thrown when i was loading a .t7 model.
it seems many people have the same problem.
does someone have any idea for that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions