bshillingford / python-torchfile

Deserialize Lua torch-serialized objects from Python
BSD 3-Clause "New" or "Revised" License
216 stars 25 forks source link

TypeError: 'NoneType' object is not callable #21

Open buchuitoudegou opened 4 years ago

buchuitoudegou commented 4 years ago

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?

litingfeng commented 4 years ago

same issue here

rimless commented 1 year ago

same issue

renhaa commented 1 year ago

Same

Mohaddz commented 5 months ago

Same here, did you find a soltion?

wylblank commented 3 months ago

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?

您好,我也遇到了同样的问题,请问您是怎么解决的? Hello, I also encountered the same problem, how did you solve it?