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

TypeError: 'NoneType' object is not callable #21

Open
buchuitoudegou opened this issue Jan 10, 2020 · 5 comments
Open

TypeError: 'NoneType' object is not callable #21

buchuitoudegou opened this issue Jan 10, 2020 · 5 comments

Comments

@buchuitoudegou
Copy link

buchuitoudegou commented Jan 10, 2020

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
Copy link

same issue here

@rimless
Copy link

rimless commented Jun 8, 2023

same issue

@renhaa
Copy link

renhaa commented Jul 3, 2023

Same

@Mohaddz
Copy link

Mohaddz commented Feb 10, 2024

Same here, did you find a soltion?

@wylblank
Copy link

wylblank commented Apr 9, 2024

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?

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

6 participants