Closed mheriyanto closed 4 years ago
When I run this code: my_vgg = vgg.vgg19_bn(pretrained=True) model = Model(features=my_vgg.features, bins=2).cuda() I get notice below: model = Model(features=my_vgg.features, bins=2).cuda() TypeError: 'module' object is not callable
my_vgg = vgg.vgg19_bn(pretrained=True)
model = Model(features=my_vgg.features, bins=2).cuda()
TypeError: 'module' object is not callable
I get solution. I change model = Model(features=my_vgg.features, bins=2).cuda() to model = Model.Model(features=my_vgg.features, bins=2).cuda()
model = Model.Model(features=my_vgg.features, bins=2).cuda()
When I run this code:
my_vgg = vgg.vgg19_bn(pretrained=True)
model = Model(features=my_vgg.features, bins=2).cuda()
I get notice below:model = Model(features=my_vgg.features, bins=2).cuda()
TypeError: 'module' object is not callable