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

how can i initialize the entire model (feature + classifier), and load all weights (81 layers). #4

Open
lyu-joe opened this issue Nov 11, 2019 · 1 comment

Comments

@lyu-joe
Copy link

lyu-joe commented Nov 11, 2019

i applied '' network.load_weights(os.path.join(args.resume),by_name=True)'', --ghost_cluster 2 --vlad_cluster 8 with your defeat setting , if i don't specify parameter ''by_name=True'',it will raise error 'ValueError: You are trying to load a weight file containing 80 layers into a model with 81 layers.' so dose it means your pre-trained model 'weights.h5' just contains 80 layers, how can i initialize the entire model (feature + classifier), and load all weights (81 layers).

@julik43
Copy link
Owner

julik43 commented Nov 19, 2019

I don't use load_weights, I use restore, and I don't have any ghost_cluster, I think you confused this repository with the one of VGG group which model has ghost_cluster and vlad_cluster.

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