GithubHelp home page GithubHelp logo

ustc-vim / dualnet Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 13.0 7.36 MB

DualNet: Learn Complementary Features for Image Recognition

CMake 1.59% Makefile 0.35% HTML 0.12% CSS 0.15% Shell 0.59% C++ 39.35% Jupyter Notebook 50.27% Python 4.81% Cuda 2.12% Protocol Buffer 0.65%

dualnet's Introduction

DualNet

This repository is for the paper "DualNet: Learn Complementary Features for Image Recognition"

Download Links: [Paper] [Supplementary Material]

./caffe-dualnet: modified from Caffe (https://github.com/BVLC/caffe)
./dualnet-dataset: the prototxt defining the models for each dataset

Usage

We illustrate the training process taking DNI on CIFAR100 as an example:

Training standard deep model

./build/tools/caffe.bin train -solver data/pklcifar100/model/v4_ninnet/solver.prototxt 2>&1 | tee -a data/pklcifar100/model/v4_ninnet/pklcifar100_nin_log.txt

Iterative Training (max_iter is set to 1 in this case)

ln -s data/pklcifar100/model/v4_ninnet/snapshot/v4_pklcifar100_nin_iter_120000.caffemodel data/pklcifar100/model/v4_ninnet/pklcifar100_nin_train_iter_120000.caffemodel_coarse
./build/tools/caffe train -solver data/pklcifar100/model/v4_ninnet/res_e1/res_e1_solver.prototxt -weights data/pklcifar100/model/v4_ninnet/pklcifar100_nin_train_iter_120000.caffemodel_coarse 2>&1 | tee -a data/pklcifar100/model/v4_ninnet/res_e1/pklcifar100_nin_res_e1_log.txt

The pretrained models are available at here.

Citation

Please cite the following paper if you find this useful in your research:

@InProceedings{Hou2017DualNet,
Title = {DualNet: Learn Complementary Features for Image Recognition},
Author = {Saihui Hou, Xu Liu and Zilei Wang},
Booktitle = {IEEE International Conference on Computer Vision (ICCV)},
Year = {2017}
}

dualnet's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dualnet's Issues

why there is only two softmax layer in prototxt

hi~

I have read your paper, but I only find two softmaxloss layer is ' res_e1_train_val.prototxt' . But there are three softmaxloss Layers in paper. May be it is due to 'iterative training' ? Thanks for your help.

Does the net is defined purely by protxt?

Hi,hshustc!

    Thanks for your great work.  Could you tell me if you use python API to define DualNet?  It seeems that no python file in your project is used to define DualNet.  I only see the protxtfile.  Hope get ur response, thanks.

训练60000次后,损失函数降不下来,结果的精度很低

你好,最近一直在读你的这篇文章,用caffe跑程序,迭代完60000次后,损失函数从最开始的7.67降到3.76左右(学习率也调整过,batchsize调整为3),训练完后,精度只有12%左右,我想请教下,怎么修改源程序参数呢?才能使损失函数收敛,精度有论文中那么高。。。期待你的答复,谢谢

Iterative training

Hello! How to do the iterative training? In the given demo, we only need to set the max_iter=1? Thanks for your help!

where is the code of JointFinetunning?

hi hshustc,
Though i have read your code for many times, I didn't find which part is used in JointFinetunning, Could u please tell me where I can find it ?
thx for your help!

initialize of the itertive training

hello,
I want to ask you whether you use finetuned model to initialize both S1 Extractor(or include S1 Classifier) and S2 Extractor ?

thanks

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.