Git Product home page Git Product logo

weakcnn's Introduction

#Version 0.1 This is a matlab implementation of weakly supervised ConvNet, which has its origin from 'Is object localization for free? โ€“ Weakly-supervised learning with convolutional neural networks' in CVPR 2015.

##How to implement the code 1.I used matconvnet in this project, which means you should have installed Matconvnet in your computer. Here is the link (http://www.vlfeat.org/matconvnet/) Thanks to A. Vedaldi and K. Lenc for providing such a good tool. You need to download and install Matconvnet.

2.Put the function file in folders 'example' and 'matlab' to corresponding location.(PS: you should have the same two folders in the root path of Matconvnet)

3.run example/cnn_weakly_label.m. ##Some Notes 1.I didn't use GPU here which is easily supported in Matconvnet. So, be free to use it in the code. 2.Global max pooling is implemented in vl_nnglobalmaxpool.m using normal vl_nnpool.m plus some tricks. 3.I added a softmax layer to the original paper. Please read cnn_weakly_label_init.m carefully. 4.Pay attention to the output error. mAP(mean average precision) instead of top error is applied to the output. I didn't modify the output message carefully cause I don't have enough time. This situatio will be improved in the latter version. 5.We only used a small set from PASCAL VOC 2012 which is not enough for complete training process. Feel free to contact me via zhouhy at lamda.nju.edu.cn.

#Version 0.2 This version now supports Gpu acceleration! I modified the loss function and some other details, e.t. random sample. However, I didn't try a multi-scale model. I believe this code could achieve nearly the same accuracy with the original one which is written using torch7.

weakcnn's People

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.