python-torchfile icon indicating copy to clipboard operation
python-torchfile copied to clipboard

TypeError: 'NoneType' object is not callable

Open buchuitoudegou opened this issue 6 years ago • 5 comments

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?

buchuitoudegou avatar Jan 10 '20 09:01 buchuitoudegou

same issue here

litingfeng avatar Jan 24 '20 19:01 litingfeng

same issue

rimless avatar Jun 08 '23 08:06 rimless

Same

renhaa avatar Jul 03 '23 14:07 renhaa

Same here, did you find a soltion?

Mohaddz avatar Feb 10 '24 13:02 Mohaddz

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?

wylblank avatar Apr 09 '24 06:04 wylblank