Giter Site home page Giter Site logo

jdc08161063 / hierarchical-bilinear-pooling Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chaojianyu/hierarchical-bilinear-pooling

0.0 2.0 0.0 8.22 MB

Implementation for <Hierarchical Bilinear Pooling for Fine-Grained Visual Recognition> in ECCV'18.

License: Other

CMake 2.81% Makefile 0.66% Dockerfile 0.08% C++ 79.72% Cuda 6.33% MATLAB 0.89% Shell 0.45% Python 9.07%

hierarchical-bilinear-pooling's Introduction

Hierarchical Bilinear Pooling for Fine-Grained Visual Recognition

This branch is developed for fine-grained recognition, the related paper is as follows:

Hierarchical Bilinear Pooling for Fine-Grained Visual Recognition[C]
Chaojian Yu, Xinyi Zhao, Qi Zheng, Peng Zhang, Xinge You*
European Conference on Computer Vision. 2018.

Files

  • Original Caffe library
  • Sum Pooling layer
    • src/caffe/proto/caffe.proto
    • include/caffe/layers/sum_pooling_layer.hpp
    • src/caffe/layers/sum_pooling_layer.cpp
    • src/caffe/layers/sum_pooling_layer.cu
  • L2 Normalize layer
    • include/caffe/layers/l2_normalize_layer.hpp
    • src/caffe/layers/l2_normalize_layer.cpp
    • src/caffe/layers/l2_normalize_layer.cu
  • Signed Sqrt layer
    • include/caffe/layers/signed_sqrt_layer.hpp
    • src/caffe/layers/signed_sqrt_layer.cpp
    • src/caffe/layers/signed_sqrt_layer.cu
  • Example
    • myexample/data/
    • myexample/HBP/ft_last_layer.sh
    • myexample/HBP/ft_last_layer.solver
    • myexample/HBP/ft_last_layer.prototxt
    • myexample/HBP/ft_all.sh
    • myexample/HBP/ft_all.solver
    • myexample/HBP/ft_all.prototxt

Train model

  1. The Installation completely the same as Caffe. Please follow the installation instructions. Make sure you have correctly installed before using our code.

  2. Download the CUB dataset and VGG16 model for training.

  3. Preprocess the CUB dataset and creat list for training set and validation set, place them in myexample/data/

  4. Fine tune the last layer

    ./myexample/HBP/ft_last_layer.sh
    
  5. Fine tune the whole network

    ./myexample/HBP/ft_all.sh
    

Fine tuned model

The fine tuned model is available: google drive baidu skydrive

Contact

All codes are tested on Titan X GPU. If you have any further questions or comments, feel free to contact Chaojian Yu ([email protected])

Citation

If the code helps your research, please consider to cite our work:

@article{yu2018hierarchical,
  title={Hierarchical Bilinear Pooling for Fine-Grained Visual Recognition},
  author={Yu, Chaojian and Zhao, Xinyi and Zheng, Qi and Zhang, Peng and You, Xinge},
  journal={arXiv preprint arXiv:1807.09915},
  year={2018}
}

hierarchical-bilinear-pooling's People

Contributors

chaojianyu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.