Ubuntu12.04+caffe (+opencv+cpu-only)

Source: Internet
Author: User

1. Download the great God mtcnn source, including Caffe

Https://github.com/DaFuCoding/MTCNN_Caffe

2. Installation of Caffe dependencies

2.1 Basic packages and installation required for installation and development Caffe the dependency.

First, install some basic packages needed for development: sudo apt-get install build-essential. If the essential package is unavailable, you can perform the following command to resolve: sudo apt-get update.

Next, install additional dependencies Ubuntu14.04 user execution: sudo apt-get install Libprotobuf-dev libleveldb-dev libsnappy-dev Libopencvdev Libboost-all-dev libhdf5-serial-dev Libgflags-dev Libgoogle-glog-dev liblmdbdev Protobuf-compiler

If there are "no files or directories to find" After installing Caffe, you can find the required packages on the Https://launchpad.net/ubuntu website.

All of the downloaded packages are installed in this way: CMake. Make makes install, but gflags need to install this: CMake/-dcmake_cxx_flags= "-o3-fpic" or install MTCNN will be FPIC Error!!

3. Installing MTCNN

CP Makefile.config.example Makefile.config

Modify Makefile.config

Cancels the cpu_only: = 1 preceding comment.

Cuda installation path changed to its own path: cuda_dir: =/usr/local/cuda-6.5

CMake.

Make

Make install

Some of the wrong workarounds:

1.//lib/x86_64-linux-gnu/libselinux.so.1:undefined reference to ' Pcre_free_study '

Ubuntu12.04+caffe (+opencv+cpu-only)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.