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

backbone name error in crfnet/model/architectures/vgg.py #13

Open
guiyuliu opened this issue Jul 20, 2020 · 0 comments
Open

backbone name error in crfnet/model/architectures/vgg.py #13

guiyuliu opened this issue Jul 20, 2020 · 0 comments

Comments

@guiyuliu
Copy link

guiyuliu commented Jul 20, 2020

maybe it should be changed to  this 

in line 38 in func def download_imagenet(self):
if self.backbone == 'vgg16':
backbone_name = 'vgg16'
resource = keras.applications.vgg16.vgg16.WEIGHTS_PATH_NO_TOP
checksum = '6d6bbae143d832006294945121d1f1fc'
elif 'vgg-max' in self.backbone:
backbone_name = 'vgg16'
resource = keras.applications.vgg16.vgg16.WEIGHTS_PATH_NO_TOP
checksum = '6d6bbae143d832006294945121d1f1fc'
elif self.backbone == 'vgg19':
backbone_name = 'vgg19'
resource = keras.applications.vgg19.vgg19.WEIGHTS_PATH_NO_TOP
checksum = '253f8cb515780f3b799900260a226db6'
else:
raise ValueError("Backbone '{}' not recognized.".format(self.backbone))
return get_file('{}_weights_tf_dim_ordering_tf_kernels_notop.h5'.format(backbone_name))

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

1 participant