Ubuntu 18.04 Python 2.7 我的问题是我无法在python中导入caffe模块,即使我已经安装了它。我认为这是一个路径/环境变量问题。 rivaldo4t@Rivaldo-OS3:~$ python
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
我在试着安装咖啡豆。在我安装了所需的依赖项并且一切看起来都很好之后,直到我到达make all -j4,它就失败了!我相信这是编译器版本错误,但我不知道如何克服它,我尝试了许多解决方案,但尚未成功。这是我得到的输出:
CXX/LD -o .build_release/tools/caffe.bin
.build_release/tools/caffe.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_
我正在尝试安装Caffe,但我遇到了这个令人沮丧的错误。当我运行make时,我得到以下结果:
CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:5:0:
.build_release/src/caffe/proto/caffe.pb.h:9:42: fatal error: google/protobuf/stubs/common.h: No such file or directory
compilation termi
我通过caffe使用自己的数据集训练网络,现在我想用C++编写一个分类代码。我的机器(linux)只与CPU一起工作!(我用GPU在虚拟机中训练网络)。
当我试图“包括”特定的Caffe头:#include <caffe/caffe.hpp>时,编译器会向我显示这个消息:fatal error: caffe/caffe.hpp: No such file or directory。
我试图将特定的caffe文件复制到/usr/lib/,但没有帮助。有什么建议吗?
我已经把cudnn和cuda安装在ubuntu里了,我
使所有的-j4
在caffe目录下,它通过得很好。但当我
做试验
它显示:
CXX src/caffe/test/test_im2col_layer.cpp
In file included from ./include/caffe/util/device_alternate.hpp:40:0,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
我使用的是Ubuntu 16、Python 3、CUDA 10.1和Tensorflow 2.3。我在Caffe github repo上使用了git clone,然后 cd build
cmake ..
make all 我得到了一堆协议错误: ~/Downloads/caffe/build$ make clean
~/Downloads/caffe/build$ make all
[ 1%] Running C++/Python protocol buffer compiler on /home/me/Downloads/caffe/src/caffe/proto/caffe.prot
我已经通过运行以下命令成功地编译了Caffe框架(caffe.berkeleyvision.org)
make all
make pycaffe
然而,当我试图加载这个库时,我得到了一个奇怪的错误:
In [1]: import sys
In [2]: sys.path.append('/contrib/projects/caffe/caffe/python')
In [3]: import caffe
---------------------------------------------------------------------------
ImportErro
我最近修改了Caffe ,并试图重新编译它。但是,我很难将一个简单的g++编译链接到.hpp目录中的.hpp文件。我知道这是一个基本的问题,但我似乎解决不了--有人能帮我解决如何编译这个程序吗?编译现在如下所示:
g++ -I /home/jack/caffe/include classification.cpp -o classify
但我发现了一个错误:
In file included from /home/jack/caffe/include/caffe/common.hpp:19:0,
from /home/jack/caffe/include/caffe/blob.hpp:
我用的指令尝试了caffe安装,ubuntu安装命令sudo apt install caffe-cuda在错误的情况下根本无法工作。
Package caffe-cuda is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'caffe-cuda' has no installation
我一直都在面对这个问题。我使用的是ubuntu 16.04,cuda 8,cudnn 5.1,opencv 3.1,matlab 2014a。我用cuda安装了opencv3.1,我想配置matcaffe。提前谢谢。
这是我的错误报告。
MEX matlab/+caffe/private/caffe_.cpp
Building with 'g++'.
Warning: You are using gcc version '5.4.1'. The version of gcc is not supported. The version currently
从源头构建PyTorch的❓问题
大家好,
我在从源头构建PyTorch时遇到了问题。我跟踪了。我使用AnacondaPython3.7.1(版本2018.12,构建py37_0)。我使用conda安装了所有必要的依赖项,并发出了python setup.py install命令来构建它。它成功地构建了所有文件,但是在安装步骤时失败了,它说:
build/temp.linux-x86_64-3.7/torch/csrc/stub.o: file not recognized: file format not recognized
我试着用gcc/g++版本5,6,7构建,但是没有帮助。你能帮我
当我试图在我的RHEL机器上编译caffe时,我有这样的错误:我确实遵循了这个链接的说明:,但它看起来不工作。有什么帮助吗?谢谢
$make all
CXX src/caffe/data_transformer.cpp
src/caffe/data_transformer.cpp:1:33: warning: opencv2/core/core.hpp: No such file or directory
src/caffe/data_transformer.cpp: In member function ‘void caffe::DataTransformer<Dtype>::T
我正在尝试在ubuntu17.10上安装
然而,当我执行make all时,我得到了以下错误:
./include/caffe/common.hpp(84): error: namespace "std" has no member "isnan"
./include/caffe/common.hpp(85): error: namespace "std" has no member "isinf"
2 errors detected in the compilation of "/tmp/tmpxft_0000492
我正在使用boost 1.66在Ubuntu17.04系统上安装caffe。我能够毫无问题地执行make all和make test:
me@icvr1:~/PackageDownloads/caffe$ make all
make: Nothing to be done for 'all'.
me@icvr1:~/PackageDownloads/caffe$ make test
make: Nothing to be done for 'test'.
然而,当我尝试make runtest时,我会得到以下错误:
me@icvr1:~/PackageDownl
我一直在尝试在运行OSX 10.13.6的mac上安装Caffe
我遵循了几个指南,包括caffe网站上的安装指南。我已经删除了所有内容,并重新启动了几次。无论如何,我都会遇到同样的问题。当我去编译所有的东西时,我得到了这样的结果
Scanning dependencies of target caffeproto [ 1%] Building CXX object src/caffe/CMakeFiles/caffeproto.dir/__/__/include/caffe/proto/caffe.pb.cc.o In file included from /Users/Name/Docu
我正在尝试在google colab上构建openpose,我已经完成了Cmake配置,当涉及到make时,我使用了
make -j4 all
它弹出了一个错误,错误如下:
[ 84%] Linking CXX shared library ../../lib/libcaffe.so
CMake Error: failed to create symbolic link '../../lib/libcaffe.so': function not implemented
CMake Error: cmake_symlink_library: System Error: Fun
我正在尝试构建,它可以生成健壮的面部标志。
在安装指南中,它说需要安装咖啡馆必备软件,我已经在我的AWS EC2实例上检查了CUDA和BLAS。
然后,我使用git克隆了make,并在实验室中命名的克隆的git文件夹下键入了git。
但是它返回以下错误
CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0:
.build_release/src/caffe/proto/caffe.pb.h:12:2: error: #
我花了一天的时间试图弄清楚如何安装caffe。最后,我毫无错误地构建了一切,包括pycaffe。但是,当我现在在我的小测试pythons脚本中运行"import caffe“时,我得到了以下错误
ImportError: /usr/progtools/anaconda2/bin/../lib/libgomp.so.1: version `GOMP_4.0' not found (required by /usr/lib/x86_64-linux-gnu/libsoxr.so.0)
我发现了这个github的问题,在底部有人说这是因为在anaconda里面的gcc版本是4.*而我
我正在尝试使用用户添加的几个层cpp文件从官方的GitHub源代码+编译Caffe。在编译时,我会得到以下错误:
f@f-VirtualBox:~/caffe/mts4/caffe-master$ sudo make all
CXX/LD -o .build_release/tools/caffe.bin
.build_release/lib/libcaffe.so: undefined reference to `PyString_FromString'
.build_release/lib/libcaffe.so: undefined reference to `PyErr_Pri
我很难进行编译。不幸的是,我没有编译它。
I跟踪了:
git clone https://github.com/BVLC/caffe.git
cd caffe
mkdir build
cd build
cmake ..
make all
运行make all失败时有以下错误消息:
[ 2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile.dir/util/cuda_compile_generated_im2col.cu.o
In file included from /usr/include/cuda_run
我下载了caffe并将python\caffe文件夹复制到我的站点包中。但是在导入caffe之后,它给了我以下错误:
Traceback (most recent call last):
File "C:\Users\ag185211\Desktop\Tanmay\HappyNet-master\opencv_functions.py", line 23, in
import caffe
File "C:\Python27\lib\site-packages\caffe_init_.py", line 1, in
from .pycaffe import N
我目前正在我的Macbook上用python设置caffe。我发誓所有的先决条件都是正常的,但是当我试图构建caffe时,它会返回错误。怎么了?这是控制台:
/bin/sh: /usr/local/cuda/bin/nvcc: No such file or directory
awk: syntax error at source line 1
context is
{exit >>> < <<< 7.0;}
awk: illegal statement at source line 1
CXX src/caffe/blob.cpp
CX
我需要帮助在Ubuntu 14.04上建立Caffe (深度学习)。在运行命令sudo make all -j4之后,我得到如下报告:
In file included from /usr/local/include/google/protobuf/arena.h:48:0,
from .build_release/src/caffe/proto/caffe.pb.h:23,
from ./include/caffe/util/signal_handler.h:4,
from src/caff