## *LocNet: Improving Localization Accuracy for Object Detection*
### Introduction
This code implements the following CVPR 2016 paper (accepted for oral presentation):
**Title:** "LocNet: Improving Localization Accuracy for Object Detection"
**Authors:** Spyros Gidaris, Nikos Komodakis
**Institution:** Universite Paris Est, Ecole des Ponts ParisTech
**ArXiv Link:** http://arxiv.org/abs/1511.07763
**Code:** https://github.com/gidariss/LocNet
**Abstract:**
"We propose a novel object localization methodology with the purpose of boosting the localization accuracy of state-of-the-art object detection systems. Our model, given a search region, aims at returning the bounding box of an object of interest inside this region. To accomplish its goal, it relies on assigning conditional probabilities to each row and column of this region, where these probabilities provide useful information regarding the location of the boundaries of the object inside the search region and allow the accurate inference of the object bounding box under a simple probabilistic framework.
For implementing our localization model, we make use of a convolutional neural network architecture that is properly adapted for this task, called LocNet. We show experimentally that LocNet achieves a very significant improvement on the mAP for high IoU thresholds on PASCAL VOC2007 test set and that it can be very easily coupled with recent state-of-the-art object detection systems, helping them to boost their performance. Finally, we demonstrate that our detection approach can achieve high detection accuracy even when it is given as input a set of sliding windows, thus proving that it is independent of region proposal methods."
### Citing LocNet
If you find LocNet useful in your research, please consider citing:
> @inproceedings{gidaris2016locnet,
title={LocNet: Improving Localization Accuracy for Object Detection},
author={Gidaris, Spyros and Komodakis, Nikos},
booktitle={Computer Vision and Pattern Recognition (CVPR), 2016 IEEE Conference on},
year={2016}
}
### License
This code is released under the MIT License (refer to the LICENSE file for details).
### Requirements
**Hardware:**
For training the LocNet models or testing the LocNet object detection pipeline you will require a GPU with at least 6 Gbytes of memory.
**Software:**
1. Modified version of Caffe developed to supprot LocNet and installed with the cuDNN library [[link](https://github.com/gidariss/caffe_LocNet)].
2. MATLAB (tested with R2014b)
**Optional:**
The following packages are necessary for using the [EdgeBox](http://research.microsoft.com/apps/pubs/default.aspx?id=220569) or [Selective Search](http://koen.me/research/selectivesearch/) bounding box proposas algorithms:
1. Edge Boxes code [[link](https://github.com/pdollar/edges)].
2. The image processing MATLAB toolbox of Piotr Dollar (used for the Edge Boxes) [[link](http://vision.ucsd.edu/~pdollar/toolbox/doc/index.html)].
3. Selective search code [[link](http://huppelen.nl/publications/SelectiveSearchCodeIJCV.zip)].
**Note:** we provide the bounding box proposals of PASCAL images and hence installing the above packages is not necessary for training or testing models on this dataset. However, they are necessary for running the demo code on images other than the one that is provided by us.
### Installation (sufficient for the demo)
1. Download and install this modified version of [Caffe](https://github.com/gidariss/caffe_LocNet) developed to supprot LocNet. To clone Caffe on your local machine:
```Shell
# $caffe_LocNet: directory where Caffe will be cloned
git clone https://github.com/gidariss/caffe_LocNet $caffe_LocNet
```
`$caffe_LocNet` is the directory where Caffe is cloned. After cloning Caffe follow the installation instructions [here](http://caffe.berkeleyvision.org/installation.html). **Note** that you have to install Caffe with the cuDNN library.
2. Clone the ***LocNet*** code in your local machine:
```Shell
# $LocNet: directory where LocNet will be cloned
git clone https://github.com/gidariss/LocNet $LocNet
```
From now on, the directory where ***LocNet*** was cloned will be called `$LocNet`.
3. Create a symbolic link of [Caffe](https://github.com/gidariss/caffe_LocNet) installatation directory at `$LocNet/external/`:
```Shell
# $LocNet: directory where LocNet was cloned
# $caffe_LoNet: directory where caffe was cloned
ln -sf $caffe_LoNet $LocNet/external/caffe_LocNet
```
4. open matlab from the `$LocNet/` directory:
```Shell
cd $LocNet
matlab
```
5. Run the `LocNet_build.m` script on matlab command line
```Shell
# matlab command line enviroment
>> LocNet_build
```
Do not worry about the warning messages. They also appear on my machine.
### Download and use the pre-trained models
Download the tar.gz files with the pre-trained models:
**Recognition models:**
1. [Reduced MR-CNN recognition model](https://drive.google.com/file/d/0BwxkAdGoNzNTNFNKTzV3UnZGLW8/view?usp=sharing).
2. [Fast RCNN recognition model](https://drive.google.com/file/d/0BwxkAdGoNzNTMDJUMGRhWV9qV2s/view?usp=sharing) (re-implemented by us).
**Localization models:**
1. [LocNet In-Out model](https://drive.google.com/file/d/0BwxkAdGoNzNTcFpaYkFVN3FraUU/view?usp=sharing).
2. [LocNet Borders model](https://drive.google.com/file/d/0BwxkAdGoNzNTTF84MG5Xby1RRzA/view?usp=sharing).
3. [LocNet Combined model](https://drive.google.com/file/d/0BwxkAdGoNzNTS3FPOVlWSGZUVjQ/view?usp=sharing).
4. [CNN-based bounding box regression model](https://drive.google.com/file/d/0BwxkAdGoNzNTV0p2Vmh5YS1LRE0/view?usp=sharing).
Untar and unzip all of the above files on the following locations:
```Shell
# Recognition models:
$LocNet/models-exps/VGG16_Reduced_MRCNN # Reduced MR-CNN recognition model
$LocNet/models-exps/VGG16_FastRCNN # Fast RCNN recognition model
# VOC2012 structure:
$LocNet/models-exps/VGG16_LocNet_InOut # LocNet In-Out model
$LocNet/models-exps/VGG16_LocNet_Borders # LocNet Borders model
$LocNet/models-exps/VGG16_LocNet_Combined # LocNet Combined model
$LocNet/models-exps/VGG16_BBoxReg # CNN-based bounding box regression model
```
All of the above models are based on the VGG16-Net and are trained on the union of VOC2007 train+val plus VOC2012 train+val datasets. Note that they are not the same as those used to report result in the paper and hense their performance is slightly different from them (around 0.2 mAP points difference more or less in the percentage scale).
### Demo
After having complete the basic installation, you will be able to run the demo of object detection based on the LocNet localization models. In order to do that, open the matlab from `$LocNet/` directory and then run the script `'demo_LocNet_object_detection_pipeline'` from the matlab command line enviroment:
cd $LocNet
matlab
# matlab command line enviroment
>> demo_LocNet_object_detection_pipeline
**Note:** you will require a GPU with at least 6 Gbytes of memory in order to run the demo.
In order to play with the parameters of the object detection pipeline read and edit the [demo script](https://github.com/gidariss/LocNet/blob/master/code/examples/demo_LocNet_object_detection_pipeline.m):
# matlab command line enviroment
>> edit demo_LocNet_object_detection_pipeline.m
### Installing and using the box proposals algorithms (Optional)
First install 1) [Edge Boxes](https://github.com/pdollar/edges), 2) [Dollar's image processing MATLAB toolbox](http://vision.ucsd.edu/~pdollar/toolbox/doc/index.html) (used in Edge Boxes), and 3) [Selective Search](http://huppelen.nl/publications/SelectiveSearchCodeIJCV.zip). Then, create symbolic links o
没有合适的资源?快使用搜索试试~ 我知道了~
机器视觉算法库-检测算法.7z
共2000个文件
m:1660个
png:588个
hh:201个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 80 浏览量
2023-07-04
11:58:38
上传
评论 1
收藏 208.5MB 7Z 举报
温馨提示
机器视觉算法库-检测算法.7z
资源推荐
资源详情
资源评论
收起资源包目录
机器视觉算法库-检测算法.7z (2000个子文件)
pdistmex.c 21KB
linkagemex.c 18KB
libsvmtrain.c 11KB
imtransform2_c.c 11KB
train.c 10KB
train.c 10KB
train.c 10KB
train.c 10KB
train.c 9KB
train.c 9KB
train.c 9KB
train.c 9KB
libsvmpredict.c 9KB
predict.c 8KB
predict.c 8KB
predict.c 8KB
predict.c 8KB
svm_model_matlab.c 8KB
meanShift1.c 5KB
predict.c 5KB
predict.c 5KB
predict.c 5KB
predict.c 5KB
qsort.c 5KB
qsort.c 5KB
qsort.c 5KB
histc2c.c 4KB
libsvmread.c 4KB
libsvmread.c 4KB
libsvmread.c 4KB
libsvmread.c 4KB
libsvmread.c 4KB
linear_model_matlab.c 3KB
linear_model_matlab.c 3KB
linear_model_matlab.c 3KB
linear_model_matlab.c 3KB
nlfiltersep_sum.c 3KB
nlfiltersep_max.c 2KB
libsvmwrite.c 2KB
libsvmwrite.c 2KB
libsvmwrite.c 2KB
libsvmwrite.c 2KB
assignToBins1.c 2KB
libsvmwrite.c 2KB
ktHistcRgb_c.c 2KB
ktComputeW_c.c 2KB
fernsInds1.c 2KB
dnrm2.c 1KB
dnrm2.c 1KB
dnrm2.c 1KB
dnrm2.c 1KB
ddot.c 1KB
ddot.c 1KB
ddot.c 1KB
daxpy.c 1KB
daxpy.c 1KB
daxpy.c 1KB
ddot.c 1KB
daxpy.c 1KB
dscal.c 1KB
dscal.c 1KB
dscal.c 1KB
dscal.c 1KB
svm.cpp 61KB
linear.cpp 55KB
linear.cpp 55KB
linear.cpp 55KB
linear.cpp 55KB
reg_RF.cpp 40KB
reg_RF.cpp 39KB
classRF.cpp 33KB
fibheap.cpp 19KB
gradientMex.cpp 18KB
edgeBoxesMex.cpp 18KB
mex_get_tree_cands.cpp 15KB
spDetectMex.cpp 14KB
mex_hole_filling.cpp 14KB
mex_regressionRF_train.cpp 12KB
mex_regressionRF_train.cpp 12KB
diabetes_C_wrapper.cpp 11KB
diabetes_C_wrapper.cpp 11KB
ucm_mean_pb.cpp 11KB
roi_align_layer.cpp 10KB
convConst.cpp 10KB
mex_contour_sides.cpp 10KB
adaptive_region_pooling_mex.cpp 10KB
classTree2.cpp 10KB
twonorm_C_wrapper.cpp 10KB
rfutils.cpp 9KB
classTree.cpp 9KB
edgesDetectMex.cpp 9KB
rgbConvertMex.cpp 9KB
mex_ClassificationRF_train.cpp 8KB
mex_prune_ucm_nregs.cpp 8KB
imResampleMex.cpp 8KB
cokus.cpp 8KB
mex_prune_tree_to_regions.cpp 8KB
cokus.cpp 7KB
cokus.cpp 7KB
roiPooling_forward.cpp 7KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- weixin_475818752023-09-09终于找到了超赞的宝藏资源,果断冲冲冲,支持!
应用市场
- 粉丝: 469
- 资源: 3817
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功