私は機械学習に慣れています。私は最近この問題に直面しました:Wide-Area Image Geolocalization with Aerial Reference Imagery 。Caffeの "Boost"前提条件をインストールできない
これは、画像のGPS位置を予測するネットです。 Boost
:私は主な前提条件をインストールすることはできませんのでimport glob
import caffe
import numpy as np
import multiprocessing
import matplotlib.pyplot as plt
from collections import defaultdict
、私はインストールしていないようことができ、カフェだった。言うまでもなく、私は唯一の要件のいずれかがあることを発見するために、喜んでいました
私が最初に失敗しただけでなく、標準sudo apt-get install libboost-all-dev
を実行しようとした:
The following packages have unmet dependencies:
libboost-all-dev : Depends: libboost-chrono-dev but it is not going to be installed
Depends: libboost-date-time-dev but it is not going to be installed
Depends: libboost-filesystem-dev but it is not going to be installed
Depends: libboost-graph-dev but it is not going to be installed
Depends: libboost-graph-parallel-dev but it is not going to be installed
Depends: libboost-iostreams-dev but it is not going to be installed
Depends: libboost-log-dev but it is not going to be installed
Depends: libboost-mpi-dev but it is not going to be installed
Depends: libboost-mpi-python-dev but it is not going to be installed
Depends: libboost-program-options-dev but it is not going to be installed
Depends: libboost-python-dev but it is not going to be installed
Depends: libboost-regex-dev but it is not going to be installed
Depends: libboost-serialization-dev but it is not going to be installed
Depends: libboost-system-dev but it is not going to be installed
Depends: libboost-thread-dev but it is not going to be installed
Depends: libboost-wave-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
それは私に、「インストールされようとしていません」というエラーを与えました。私はその後、ソースからインストールしようとしました:
wget -O boost_1_55_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download
tar xzvf boost_1_55_0.tar.gz
cd boost_1_55_0/
./bootstrap.sh --prefix=/usr/local
./b2
そしてそれは即座に私の端末全体をg ++エラーで埋めました。私はその後、ゼロからスタートしてみました:
sudo apt-get --purge remove libboost-all-dev libboost-dev libboost-doc
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update
sudo apt-get install libboost1.54-dev
そして、それがテストスクリプトでを働いている間:
CXX src/caffe/util/db.cpp
In file included from ./include/caffe/common.hpp:19:0,
from ./include/caffe/util/db.hpp:6,
from src/caffe/util/db.cpp:1:
./include/caffe/util/device_alternate.hpp:34:23: fatal error: cublas_v2.h: No such file or directory
#include <cublas_v2.h>
^
compilation terminated.
make: *** [.build_release/src/caffe/util/db.o] Error 1
:私は
make
カフェに続いしようとしたとき、私はこれを得た
How to Install boost on Ubuntu?
ここで何が問題になりますか?
OK:
これはあなたの
device_alternate.hpp
以下を有することに起因しています「#CPU専用スイッチ(GPUサポートなしでビルドをコメント解除する)」と書かれていますが、「どちらの行もコメントを外すか? – Rich1のみ。回答の編集を参照してください – Vtik
元の質問を解決した場合は、回答を受け入れることを忘れないでください。ありがとう、 – Vtik