chainer Faster R-CNN

GitHub - mitmul/chainer-faster-rcnn: Object Detection with Faster R-CNN in Chainer

インストール

事前に cython 入れます。

$ sudo easy_install cython
$ git clone https://github.com/mitmul/chainer-faster-rcnn
$ cd chainer-faster-rcnn/lib
$ python setup.py build_ext -i
$ cd ..
$ mkdir data
$ cd data
$ wget https://dl.dropboxusercontent.com/u/2498135/faster-rcnn/VGG16_faster_rcnn_final.model
$ cd ..
$ $ python forward.py --img_fn test.jpg --gpu 0

実行すると、result.jpg が出来上がります。

f:id:pongsuke:20170314155511j:plain

f:id:pongsuke:20170314155545j:plain