Skip to content
Weakly Supervised Deep Detection Networks (CVPR 2016)
Branch: master
Clone or download
Latest commit 50ef7a0 Apr 23, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
core Autodownload model Apr 23, 2018
matlab/+dagnn Fix a minor issue Mar 28, 2018
pascal Auto download Mar 28, 2018
.gitignore Add ignore Mar 27, 2018 Auto download Mar 28, 2018
setup_WSDDN.m Fix setup Mar 28, 2018

Weakly Supervised Deep Detection Networks (WSDDN)


  1. Download and install MatConvNet
  2. Install this module with the package manager of MatConvNet vl_contrib:
    vl_contrib('install', 'WSDDN') ;
    vl_contrib('setup', 'WSDDN') ;
  1. If you want to train a WSDDN model, wsddn_train will automatically download the items below:

    a. PASCAL VOC 2007 devkit and dataset under data folder

    b. Pre-computed edge-boxes for trainval and test splits:

    c. Pre-trained network from MatConvNet website

  2. You can also download the pre-trained WSDDN model (VGGF-EB-BoxSc-SpReg). Note that it gives slightly different performance reported than in the paper (34.4% mAP instead of 34.5% mAP)


After completing the installation and downloading the required files, you are ready for the demo

            cd scripts;
            opts.modelPath = '....' ;
            opts.imdbPath = '....' ;
            opts.gpu = .... ;
            wsddn_demo(opts) ;


            addpath scripts;
            opts.modelPath = '....' ;
            opts.imdbPath = '....' ;
            opts.gpu = .... ;
            opts.vis = true ; % visualize
            wsddn_test(opts) ;


Download an ImageNet pre-trained model from

            addpath scripts;
            opts.modelPath = '....' ;
            opts.imdbPath = '....' ;
            opts.train.gpus = .... ;
            [net,info] = wsddn_train(opts) ;

Citing WSDDN

If you find the code useful, please cite:

      author     = "Bilen, H. and Vedaldi, A.",
      title      = "Weakly Supervised Deep Detection Networks",
      booktitle  = "Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition",
      year       = "2016"


Many thanks to Sam Albanie for his help with contrib package manager and other nameless heros who diligently found my bugs.


The analysis work performed with the program(s) must be non-proprietary work. Licensee and its contract users must be or be affiliated with an academic facility. Licensee may additionally permit individuals who are students at such academic facility to access and use the program(s). Such students will be considered contract users of licensee. The program(s) may not be used for commercial competitive analysis (such as benchmarking) or for any commercial activity, including consulting.

You can’t perform that action at this time.