GithubHelp home page GithubHelp logo

zgl1113 / hbp-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luyao777/hbp-pytorch

0.0 1.0 0.0 34 KB

Hierarchical Bilinear Pooling for Fine-Grained Visual Recognition reimplement in Pytorch.

License: GNU General Public License v3.0

Python 100.00%

hbp-pytorch's Introduction

HBP-pytorch

ย 

Overview


A third-party reimplementation of Hierarchical Bilinear Pooling for Fine-Grained Visual Recognition in Pytorch.

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.

Official Caffe implementation of Hierarchical Bilinear Pooling for Fine-Grained Visual Recognition is HERE.

Preparation


Dataset

  • CUB-200-2011
  • If you don't have a dataset, you can still execute the program and the program will automatically download the dataset.

Requirement

  • pip install visdom pytorch torchvision

Usage


for example:

  • CUDA_VISIBLE_DEVICES=0,1 python HBP_fc.py --base_lr 1.0 --batch_size 12 --epochs 120 --weight_decay 0.000005 | tee 'hbp_fc.log'
  • CUDA_VISIBLE_DEVICES=0,1 python HBP_all.py --base_lr 0.001 --batch_size 24 --epochs 200 --weight_decay 0.0005 --model 'HBP_fc_epoch_*.pth' | tee 'hbp_all.log'

Result


file acc
HBP_fc 80.42
HBP_fc_new 79.79
HBP_all 80.42

Note that HBP_fc_new.py may be the closest to the original implementation. But it still doesn't work well.

Last


Based on my code and experimental results, it is far from the result of the original author. So you can use it as a reference for learning.

This code borrows from HERE. If you have any suggestions please contact me, I am still continue to improve the results.

Happy coding.

hbp-pytorch's People

Contributors

luyao777 avatar

Watchers

 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.