Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mitmul/chainer-fast-rcnn

Chainer folk of Fast R-CNN (Object Detection Method)
https://github.com/mitmul/chainer-fast-rcnn

Last synced: 6 days ago
JSON representation

Chainer folk of Fast R-CNN (Object Detection Method)

Awesome Lists containing this project

README

        

# chainer-fast-rcnn

It aims at reproducing results of [fast-rcnn](https://github.com/rbgirshick/fast-rcnn) using [Chainer](https://github.com/pfn/chainer). It can be run only with GPU because roi_pooling_2d layer has only GPU implementation.

## Requirements

- [OpenCV 3.0 with python bindings](http://opencv.org)
- [Chainer 1.4](https://github.com/pfn/chainer)
- [fast-rcnn](https://github.com/rbgirshick/fast-rcnn)
- [dlib v18.18](https://github.com/davisking/dlib)

## Create symlink

Create a symlink from the location of original [fast-rcnn](https://github.com/rbgirshick/fast-rcnn) dir to this project's root dir. (The below line assumes a environment variable `$FRCN_ROOT` has a path to the `fast-rcnn` source dir.)

```
$ ln -s $FRCN_ROOT ./
```

Make sure that all steps written in the `Installation (sufficient for the demo)` section of `README.md` in [fast-rcnn](https://github.com/rbgirshick/fast-rcnn) have been performed.

## Convert model

Convert caffemodel to chainermodel.

```
$ python scripts/load_net.py
```

## Test

First you should prepare a sample image, and then

```
$ python scripts/forward.py --img_fn sample.jpg --out_fn result.jpg
```

### Result

![](https://raw.githubusercontent.com/wiki/mitmul/chainer-fast-rcnn/images/result.jpg)
'Overstekend wild' St. Janskerkhof Den Bosch © FaceMePLS (https://www.flickr.com/photos/faceme/5891724192)