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

vgg16 test #5

Open
kruzel opened this issue Nov 3, 2020 · 1 comment
Open

vgg16 test #5

kruzel opened this issue Nov 3, 2020 · 1 comment

Comments

@kruzel
Copy link

kruzel commented Nov 3, 2020

Hi,
do you support vgg16 pretrained test?
if yes how can I run it?
what *.pth should I use?

parser.add_argument('--network', '-n', metavar='NETWORK', default='resnet101-solar-best.pth',
help="network to be evaluated. " )

alternatively,
can you explain how to train with vgg16?
I tried setting --arch 'vgg16'
but it fails in networks.py in init() in this line:
last_feat_in = base_model.inplanes
orch.nn.modules.module.ModuleAttributeError: 'VGG' object has no attribute 'inplanes'

Thanks

@tonyngjichun
Copy link
Owner

Hi, thanks for the question and apologies for the delayed response. In this work we focused on ResNet models at it was shown that ResNet consistently outperforms VGG in image retrieval benchmarks, hence the models were designed around ResNet. The base_model.inplanes is the feature size from the last feature maps, for ResNet101 this is 2048. For all VGG models, this number would be 512. Hope this helps!

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

2 participants