Giter VIP home page Giter VIP logo

jizhihang / wsl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jbhuang0604/wsl

0.0 2.0 0.0 9.55 MB

Weakly Supervised Object Localization with Progressive Domain Adaptation (CVPR 2016)

License: Other

CMake 1.25% Makefile 0.27% Shell 0.25% HTML 0.09% CSS 0.12% C++ 47.59% Jupyter Notebook 38.36% Python 4.62% Protocol Buffer 2.11% C 0.18% MATLAB 3.41% Cuda 1.75% M 0.01% Objective-C 0.01%

wsl's Introduction

Weakly Supervised Object Localization with Progressive Domain Adaptation (CVPR 2016)

This is the research code for the paper:

Dong Li, Jia-Bin Huang, Yali Li, Shengjin Wang, and Ming-Hsuan Yang. "Weakly Supervised Object Localization with Progressive Domain Adaptation" In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016

Project page

Citation

If you find the code and pre-trained models useful in your research, please consider citing:

@inproceedings{Huang-CVPR-2016,
  author  = {Dong, Li and Huang, Jia-Bin and Li, Yali and Wang, Shengjin and Yang, Ming-Hsuan},
  title   = {Weakly Supervised Object Localization with Progressive Domain Adaptation},
  booktitle = {Proceedings of the IEEE  Conference on Computer Vision and Pattern Recognition)},
  year    = {2015},
  volume  = {},
  number  = {},
  pages   = {}  
  }

System Requirements

  • MATLAB (tested with R2014a on 64-bit Linux)
  • Caffe

Installation

  1. Download and unzip the project code.

  2. Install caffe. We call the root directory of the project code WSL_ROOT.

    cd $WSL_ROOT/caffe-wsl
    # Now follow the Caffe installation instructions here:
    # http://caffe.berkeleyvision.org/installation.html
    # If you're experienced with Caffe and have all of the requirements installed
    # and your Makefile.config is in place, then simply do:
    make all -j8
    make pycaffe
    make matcaffe
    
  3. Download the PASCAL VOC 2007 dataset. Extract all the tars into one directory named VOCdevkit. It should have this basic structure:

    $VOCdevkit/                           # development kit
    $VOCdevkit/VOCcode/                   # VOC utility code
    $VOCdevkit/VOC2007                    # image sets, annotations, etc.
    # ... and several other directories ...
    # Then create symlinks for the dataset:
    cd $WSL_ROOT/data
    ln -s $VOCdevkit VOCdevkit2007
    
  4. Download the pre-trained ImageNet model and put it into $WSL_ROOT/data/imagenet_models.

  5. Download the pre-computed EdgeBox proposals and put them into $WSL_ROOT/data/edgebox_data.

  1. Install the project.

    cd $WSL_ROOT
    # Start MATLAB
    matlab
    >> startup
    

Usage

You will need about 150GB of disk space free for the feature cache (which is stored in $WSL_ROOT/cache by default. The final adapted model will be stored in $WSL_ROOT/output/default/voc_2007_trainval.

  1. Classification adaptation.

    >> prepare_for_cls_adapt
    cd $WSL_ROOT
    sh cls_adapt.sh
    
  2. Class-specific proposal mining.

    >> maskout
    
  3. MIL for confident proposal mining.

    >> mil
    
  4. Detection adaptation.

    >> prepare_for_det_adapt
    cd $WSL_ROOT
    sh det_adapt.sh
    
  5. Evaluation.

    cd $WSL_ROOT
    sh test.sh
    

wsl's People

Contributors

dongli12 avatar jbhuang0604 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.