The deep learning framework Caffe is compiled and installed in Ubuntu.
The deep learning framework Caffe features expressive, fast, and modular. The following describes how to compile and install Caffe on Ubuntu.1. Prerequisites:
CUDA is used for computing in GPU mode.
We recommend that you use the latest version above 7.0.
BLAS via ATLAS, MKL, or OpenBLAS.
Boost >=1.55
protobuf,glog,gflags,hdf5
Optional dependent software packages:
Op
/lib64/lib3. Complete the link operation of Lib file, execute:$ sudo ldconfig-vThird, install the OpenCV1. : Https://github.com/jayrambhia/Install-OpenCV, if you feel that the difficulty is not enough, you can choose the official website of the installation package: http://opencv.org/, I am here according to the Great God compiled version of the installation.2. Switch to the folder where you saved the file, and then install the dependencies:sudo./dependencies.sh3. Install OPENCV, because do not
This article explains C + + 's method of invoking Python with instance code.This article implements three functions in Util.h:1. Init_log: Initialize log with Google log (Glog)2. Exe_command: Shell code executed by C + +3. exe_py:c++ calling Python fileCode:Include/util.h:/*************************************************************************** *- * Copyright (c) Baidu.com, Inc. All Rights Reserved * * * * * * * ***********************************
C ++ calls python
This document describes how to call python in C ++ using the instance code.This article implements three functions in util. h:1. init_log: use google log (glog) to initialize log2. exe_command: shell code executed by C ++3. exe_py: C ++ calls the python File
Code:
Include/util. h:
/*************************************************************************** *-
Reprint please specify the source:Http://www.cnblogs.com/darkknightzh/p/5797526.htmlReference URL:Http://caffe.berkeleyvision.org/installation.html#prerequisites1. Required dependencies: Boost >= 1.55,cuda,blasCheck out which directory your cuda is installed in. Makefile.config default Cuda_dir: =/usr/local/cudaDependent libraries: Protobuf, Glog, GFlags, Hdf5. Installation:sudo install libgflags-devsudoinstall libgoogle-
Ubuntu16.04 Caffe Installation record1. Install the video driverFirst update the input:sudo apt-get updatesudo apt-get upgradeThen open system settings in SoftwareupdatesSelect the following and click Apply Changes.2. Disable NouveauEdit Filesudo gedit/etc/modprobe.d/blacklist-nouveau.confWrite in an open file:Blacklist nouveau option Nouveau modeset=0Performsudo update-initramfs-uRestart, enterReboot3. Installing dependent PackagesEnter in turn:sudo apt-get install Libprotobuf-dev libleveldb-de
The first part: Caffe introductionCaffe is a Berkeley visual and Learning Center (BVLC) developed. The author is Dr. Berkeley Jia Yangqing.Caffe is a deep learning (learning) framework. It has easy-to-read, fast and modular thinking.Part II: Caffe Installation and Configuration2.1 Configuring the Environment: Ubuntu 14.04LTS, using homebrew for installation. The GPU is not used, so use the cpu-only mode. No python is used, so there is no support library for Python.2.2 Support Library2.2.1 uses h
Copyright Notice
Please respect the original works. Reprint please keep the article integrity, and in the form of hyperlinks to the original author "Tingsking18" and the main site address, convenient for other friends to ask and correct.
1. Write a header file, "Mylog.h", as follows:#pragma once#include #include #include #include #include #include #include #include #include #include using namespace Std;using namespace Log4cplus;struct Glog{
these are the properties and methods that may be unfamiliar to friends who have just been in touch with JavaScript, or friends who used to use them very infrequently, but it doesn't matter, it's not hard to find out later, and the JavaScript validation form isn't much different.
The following on the combination of procedures to give you step-by-step explanation (procedures unavoidably have unreasonable place, I hope everyone will correct, common progress):
The first part: JavaScript record br
Saltstackhttps://mp.weixin.qq.com/s?__biz=MzA3MzYwNjQ3NA==mid=2651296412idx=1sn= 645b8d9f5ee9226fcf57987a7fac95c7scene=0key= B28b03434249256bc04268e50009d90376b775d44b7c3d4da020267bb4a6bf0852b12fd54d8b9345270a2cdd6190f804ascene=0 uin=mjk1odmyntyymg%3d%3ddevicetype=imac+macbookpro11%2c4+osx+osx+10.11.4+build (15E65) version= 11020201pass_ticket=p%2fkcyxikbs9m%2fy6pjzes8n2a56adxh0slt6poaxfmwme6h8m4kakdkmq80vvpmepKey points: This paper summarizes the practice of automatic operation and maintenance
Question one: Installing Caffe without cuda:fatal error:cublas_v2.h No such file:Change in Makefile.config, cpu_only: = 1 open.Question two: "Fatal error:hdf5.h: No file or directory" workaroundReference from http://blog.csdn.net/hongye000000/article/details/51043913Step 1In line 85th of the makefile.config file, add /usr/include/hdf5/serial/ to include_dirs, i.e. change the first line below to the second line of code.INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/includeINCLUDE_DIRS := $(PYTHON_I
dependent on SPMD (a single program, multiple data streams, specific to the cluster is the logic that each node handles is the same, but the data flow is not the same) the idea of programming design, because purine only support Mpich, So the version I used is MPICH-3.2B4, the address is as follows: https://www.mpich.org/2015/07/25/mpich-3-2b4-released/1 Echo "Install Mpich"2 RM-rf./mpich-3.2b4/3 Tar-XVF./mpich-3.2b4.Tar. GZ4CD./mpich-3.2b4/5./Configure6 Make-j47 sudo Make Install8Cd.. /9 RM-r
rules:
A Use lowercase for all letters;
b The variable starts with ' _ ';
C A local variable name consisting of multiple words uses ' _ ' as the interval between each word.
Examples: $_base_dir, $_red_rose_price and so on.
4.1.1.4 Global Variables
Global variables should be prefixed with ' G ', and it is important to know the scope of a variable.
For example
Global $gLOG _level;
Global $gLOG _path;
4.1.1
line number
Detailed error message
After logging the above information, the basic determination of the wrong location, so that the targeted implementation of code refactoring and optimizationLogger Library Selection
C + + based logger library There are many, Glog, Log4cplus, Log4cpp, Poco::logger , these libraries are good, have a good background and strong technical development team. Glog
(1)
Google-glog
Logging library for C ++
Project Link: http://code.google.com/p/google-glog/
Document: http://google-glog.googlecode.com/svn/trunk/doc/glog.html
(2)
Loglite (dependent on boost. A lightweight library is actually dependent on boost. It's a pretty good idea)
A small logging Library
Project Link: http://code.google.com/p/loglite/
(3)
Rlog
C ++ logging Library
Project
. Since NSS is used, Chrome does not need to use OpenSSL.
Purify headers Homepage
Rational purify is an IBM automated testing tool mainly used to detect memory-related errors.
Google-glog's symbolization Library homepage
Google-glog is mainly used for logging. Similar projects include log4cpp, which corresponds to log4j in Java. Google-glog is widely used in Google projects, such as Google-breakpad (a p
a faster speed. The Native Client is similar to Microsoft ActiveX technology and can run in Linux and Mac OS X. Currently, it does not support IE, but only Google Chrome, Firefox, Safari, and Opera.Tesseract-ocr-An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google.OCR (Optical Character Recognition): Optical Character Recognition refers to the process of analyzing, recognizing, and obtaining texts in image files.Tesseract: an open-source OCR recognition engine.
Weedfs dependency Library
Version 0.6.1
========================================================== ====================================Glog========================================================== ====================================Http://code.google.com/p/google-glog
This is an efficient pure go Implementation of leveled logs inManner of the open source C ++ package
======================================
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.