smallcorgi/Faster-RCNN_TF
smallcorgi/Faster-RCNN_TF has 2,342 GitHub stars and 1,087 forks. GitHot measured -1 stars in 24 hours, -1 in 7 days, and -1 in 15 days. Last checked 2026-11-19 17:25 UTC. Last push 2021-10-28.
측정된 스타 증가
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Faster-RCNN in Tensorflow
머신러닝README.md
OriginalFaster-RCNN_TF
This is an experimental Tensorflow implementation of Faster RCNN - a convnet for object detection with a region proposal network. For details about R-CNN please refer to the paper Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks by Shaoqing Ren, Kaiming He, Ross Girshick, Jian Sun.
Requirements: software
Requirements for Tensorflow (see: Tensorflow)
Python packages you might not have:
cython,python-opencv,easydict
Requirements: hardware
- For training the end-to-end version of Faster R-CNN with VGG16, 3G of GPU memory is sufficient (using CUDNN)
Installation (sufficient for the demo)
- Clone the Faster R-CNN repository
# Make sure to clone with --recursive
git clone --recursive https://github.com/smallcorgi/Faster-RCNN_TF.git
- Build the Cython modules
cd $FRCN_ROOT/lib make
Demo
After successfully completing basic installation, you'll be ready to run the demo.
Download model training on PASCAL VOC 2007 [Google Drive] [Dropbox]
To run the demo
cd $FRCN_ROOT
python ./tools/demo.py --model model_path
The demo performs detection using a VGG16 network trained for detection on PASCAL VOC 2007.
Training Model
Download the training, validation, test data and VOCdevkit
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtest_06-Nov-2007.tar wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCdevkit_08-Jun-2007.tarExtract all of these tars into one directory named
VOCdevkittar xvf VOCtrainval_06-Nov-2007.tar tar xvf VOCtest_06-Nov-2007.tar tar xvf VOCdevkit_08-Jun-2007.tarIt should have this basic structure
$VOCdevkit/ # development kit $VOCdevkit/VOCcode/ # VOC utility code $VOCdevkit/VOC2007 # image sets, annotations, etc. # ... and several other directories ...Create symlinks for the PASCAL VOC dataset
cd $FRCN_ROOT/data ln -s $VOCdevkit VOCdevkit2007Download pre-trained ImageNet models
Download the pre-trained ImageNet models [Google Drive] [Dropbox]
```Shellmv VGG_imagenet.npy $FRCN_ROOT/data/pretrain_model/VGG_imagenet.npy
Run script to train and test model
cd $FRCN_ROOT ./experiments/scripts/faster_rcnn_end2end.sh $DEVICE $DEVICE_ID VGG16 pascal_voc
DEVICE is either cpu/gpu
The result of testing on PASCAL VOC 2007
| Classes | AP |
|---|---|
| aeroplane | 0.698 |
| bicycle | 0.788 |
| bird | 0.657 |
| boat | 0.565 |
| bottle | 0.478 |
| bus | 0.762 |
| car | 0.797 |
| cat | 0.793 |
| chair | 0.479 |
| cow | 0.724 |
| diningtable | 0.648 |
| dog | 0.803 |
| horse | 0.797 |
| motorbike | 0.732 |
| person | 0.770 |
| pottedplant | 0.384 |
| sheep | 0.664 |
| sofa | 0.650 |
| train | 0.766 |
| tvmonitor | 0.666 |
| mAP | 0.681 |
###References Faster R-CNN caffe version