hongbo-sun / bilinear-cnn Goto Github PK
View Code? Open in Web Editor NEWThis project forked from haomood/bilinear-cnn
PyTorch implementation of bilinear CNN for fine-grained image recognition
License: GNU General Public License v3.0
This project forked from haomood/bilinear-cnn
PyTorch implementation of bilinear CNN for fine-grained image recognition
License: GNU General Public License v3.0
Bilinear CNN (B-CNN) for Fine-grained recognition DESCRIPTIONS After getting the deep descriptors of an image, bilinear pooling computes the sum of the outer product of those deep descriptors. Bilinear pooling captures all pairwise descriptor interactions, i.e., interactions of different part, in a translational invariant manner. B-CNN provides richer representations than linear models, and B-CNN achieves better performance than part-based fine-grained models with no need for further part annotation. Please note that this repo is relative old, which is writen in PyTorch 0.3.0. If you are using newer version of PyTorch (say, >=0.4.0), it is suggested to consider using this repo https://github.com/HaoMood/blinear-cnn-faster instead. REFERENCE T.-Y. Lin, A. RoyChowdhury, and S. Maji. Bilinear CNN models for fine-grained visual recognition. In Proceedings of the IEEE International Conference on Computer Vision, pages 1449--1457, 2015. PREREQUIREMENTS Python3.6 with Numpy supported PyTorch LAYOUT ./data/ # Datasets ./doc/ # Automatically generated documents ./src/ # Source code USAGE Step 1. Fine-tune the fc layer only. It gives 76.77% test set accuracy. $ CUDA_VISIBLE_DEVICES=0,1,2,3 ./src/bilinear_cnn_fc.py --base_lr 1.0 \ --batch_size 64 --epochs 55 --weight_decay 1e-8 \ | tee "[fc-] base_lr_1.0-weight_decay_1e-8-epoch_.log" Step 2. Fine-tune all layers. It gives 84.17% test set accuracy. $ CUDA_VISIBLE_DEVICES=0,1,2,3 ./src/bilinear_cnn_all.py --base_lr 1e-2 \ --batch_size 64 --epochs 25 --weight_decay 1e-5 \ --model "model.pth" \ | tee "[all-] base_lr_1e-2-weight_decay_1e-5-epoch_.log" AUTHOR Hao Zhang: [email protected] LICENSE CC BY-SA 3.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.