-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
VGG models support #1138
VGG models support #1138
Conversation
@ksimonyan the model zoo format requires you package each model individually so that our scripts can properly parse them. See Sergey's style example in the zoo for reference: https://gist.github.com/sergeyk/034c6ac3865563b69e60 I will follow-up with a model conversion script (in Python) so that you can switch your models to BGR and upload them to the gist urls for download. |
@ksimonyan here is the script to swap input channels for ConvolutionLayer weights: https://gist.github.com/shelhamer/bee2a5b2b739fe6cee6f#file-swap_input_channels-py
to translate a model from RGB to BGR. Note the caffe + pycaffe must be compiled on a branch including your changes to introduce the Please convert your models and re-upload and then rebase this PR to operate on BGR inputs. With that done and the models split according to the model zoo format these will be ready to share. Thank you for choosing to share your models! |
A last note: the image mean should be distributed as binaryproto instead of mat. You can do the conversion in Python by loading the mat by |
@shelhamer thanks for preparing the conversion script. The models are now converted to work with BGR images and the links are added to the Model Zoo.
I'm now sharing the mean in both .mat and .binaryproto formats. |
@ksimonyan, would you like to share your models that won the competition? |
@ksimonyan, yes I will add the BGR pixel mean to the transform_data PR Sergio 2014-09-24 7:16 GMT-07:00 ksimonyan notifications@github.com:
|
@ksimonyan |
…an image subtraction
Thanks for the model support PR! We're looking forward to having the ILSVRC14 models join the zoo too. |
@shelhamer @sguada |
Awesome! Waiting for #1070 to finish. |
VGG models support
VGG models support
This pull request adds the support for the models described in the BMVC-2014 paper "Return of the Devil in the Details: Delving Deep into Convolutional Nets", K. Chatfield, K. Simonyan, A. Vedaldi, A. Zisserman. This comes down to adding a parameter to the LRN layer, denoted as "k" in [Krizhevsky et al., NIPS 2012].
The models have been converted to the current BVLC caffe format and can be accessed from the Zoo.
An important thing to note is that currently the models expect an RGB input, rather than BGR.An example of how to use the models can be found in matlab/caffe/matcaffe_demo_vgg.m