Giter Site home page Giter Site logo

yuchiwang / py-faster-rcnn-cpu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rbgirshick/py-faster-rcnn

0.0 2.0 0.0 2.82 MB

Faster R-CNN under CPU only mode, using docker under ubuntu 14.04

License: Other

Shell 3.18% Makefile 0.02% MATLAB 0.81% Python 89.43% C++ 0.06% Cuda 2.24% C 4.26%

py-faster-rcnn-cpu's Introduction

Faster R-CNN under CPU only mode using docker

About Faster R-CNN, see _README.md

1. System Info

  • Ubuntu 14.04 LTS x64 (I'm using VMWare Fusion)
  • Note: Please keep memory >= 4GB, or you may encounter following errors:
    • g++: internal compiler error: Killed (program cc1plus) when compiling
    • *ptr host allocation of size 1382400000 failed when running demo.py

2. Install Docker

sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo service docker restart

3. Pull docker image & Install requirements

  1. pull docker image

docker pull tleyden5iwx/caffe-cpu-master

  1. run image

docker run -i -t tleyden5iwx/caffe-cpu-master /bin/bash

  1. install requirements (cython already satisfied)
sudo apt-get install python-opencv
sudo pip install easydict
  1. set up git
git config --global user.name "John Doe"
git config --global user.email [email protected]

4. Clone & Run demo

  1. clone
git clone --recursive https://github.com/shawnau/py-faster-rcnn-cpu.git
  1. compile(assuming the root of the repo is $FRCN_ROOT)
  • rename $FRCN_ROOT/caffe-fast-rcnn/Makefile.config.example into Makefile.config
cd $FRCN_ROOT/lib
make

cd $FRCN_ROOT/caffe-fast-rcnn
git checkout faster-rcnn-upstream-33f2445
make -j8 && make pycaffe
  1. download pretrained caffemodel
cd $FRCN_ROOT
./data/scripts/fetch_faster_rcnn_models.sh
  1. run demo
cd $FRCN_ROOT
./tools/demo.py --cpu --net zf
  • there is a problem with VGG16 net, may be it's memory's issue, see refer
  1. results are saved into tag_<filename>.jpgunder $FRCN_ROOT/data/demo/

5. Main modify

  1. Problems with the cpu mode
  • lib/fast_rcnn/config.py
  • lib/fast_rcnn/nms_wrapper.py
  • lib/setup.py
  • tools/test_net.py, train_net.py
  • caffe-fast-rcnn/Makefile.config
  1. change output, saving results into files instead of showing
  • tools/demo.py

Refer

How to setup with CPU ONLY mode
I got the error when running demo.py
Caffe failed with py-faster-rcnn demo.py on TX1

py-faster-rcnn-cpu's People

Contributors

dectinc avatar drozdvadym avatar rbgirshick avatar shawnau avatar wangdelp avatar

Watchers

 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.