jjzjj

windows - 在 Windows Caffe 上训练 cifar10 时出现 libprotobuf 错误

您好,我是DNN的新手,我正在Windows7上试用Caffe。我已经成功编译了Caffe,还制作了CIFAR10和mean.binaryproto文件的训练和测试leveldb文件。现在是时候开始训练和测试CIFAR10了,但是当我尝试训练时,我得到了即使在谷歌搜索很长时间后也无法解决的错误。请帮忙!这是我的版本信息:Anaconda2、Cuda7.5、Cudnn4、VisualStudio2013C:\caffe-master\Build\x64\Release>caffetrain-solver=cifar10_quick_solver.prototxt[libprotobufE

c++ - 输入层类型 : ImageData in windows caffe cpp giving Blank Output

我正在使用cpp在Windows中使用caffe处理图像分割问题。我正在使用“Imagedata”输入类型来训练网络,但在测试时我得到的是空白输出。谁能帮我分析一下这个问题。**********solver.prototxt***************test_initialization:falsebase_lr:0.01display:51max_iter:50000lr_policy:"step"gamma:0.1momentum:0.9weight_decay:0.0001stepsize:4069snapshot:10000snapshot_prefix:"snapshot

python - cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'

我在windows10CMD中遇到了一个问题,当我尝试为coco数据集编译一个.py文件时,问题就出现了。信息如下:runningbuild_extbuilding'pycocotools._mask'extensionC:\ProgramFiles(x86)\MicrosoftVisualStudio14.0\VC\BIN\amd64\cl.exe/c/nologo/Ox/MD/W3/GS-/DNDEBUG-IE:\Anaconda2\Lib\site-packages\numpy\core\include-I../common-IE:\Anaconda2\include-IE:\A

c++ - 写入 LMDB 失败

我正在尝试将数据写入lmdb数据库(引用来自caffe/tools/convert_imageset.cpp)。控制台中没有错误,但.mdb文件的文件大小保持为零,即没有数据写入文件,但创建了数据和锁定文件。我试过的代码部分是:scoped_ptrdb(db::GetDB("lmdb"));db->Open(argv[3],db::NEW);scoped_ptrtxn(db->NewTransaction());datum.SerializeToString(&out);txn->Put(key1,out);txn->Commit();我无法弄清楚我是否遗漏了什么。任何有关LMBD工作

c++ - Caffe的Softmax层是如何计算概率值的?

有谁知道Caffesoftmax层内部进行了哪些计算?我使用的是预训练网络,最后有一个softmax层。在测试阶段,对于图像的简单转发,倒数第二层(“InnerProduct”)的输出如下:-0.20095,0.39989,0.22510,-0.36796,-0.21991,0.43291,-0.22714,-0.22229,-0.08174,0.01931,-0.05791,0.21699,0.00437,-0.02350,0.02924,-0.28733,0.19157,-0.04191,-0.07360,0.30252最后一层(“Softmax”)的输出值如下:0.00000,0

c++ - 加载共享库时出错 : libcaffe. 所以

我正在尝试编写一个使用caffe的简单C++应用程序。这是我的makefile的一部分:FLAGS:=-I/usr/local/cuda/include-I/home/guinness/GamerIA/Caffe/caffe/include/-I/home/guinness/GamerIA/Caffe/caffe/src/-I$(ALE)/src-I$(ALE)/src/controllers-I$(ALE)/src/os_dependent-I$(ALE)/src/environment-I$(ALE)/src/external-L$(ALE)-L../Caffe/caffe/bui

c++ - 创建多个 Caffe 实例 - C++

我想在单个C++程序中创建多个Caffe实例,以便我可以使用多个GPU,但Caffe似乎是一个单例实例。我可以运行使用Caffe的单独程序,并为每个程序分配一个唯一的GPU。多程序方法不像我从单个程序运行它们那样容易管理。 最佳答案 @Apexdev,我正在处理类似的问题。我想在同一个数据集上测试多个模型。以前我曾经使用与您不同的脚本进行测试,现在我可以使用相同的脚本调用所有脚本。这是对我有用的解决方案......头文件:#include第1步:定义一个我们将传递给线程参数的结构Ex.structthread_Arguments{i

c++ - caffe 安装 : gcc error namespace "std" has no member "isnan"

我正在尝试安装(py)caffe在ubuntu17.10上然而,当我执行makeall时,出现以下错误:./include/caffe/common.hpp(84):error:namespace"std"hasnomember"isnan"./include/caffe/common.hpp(85):error:namespace"std"hasnomember"isinf"2errorsdetectedinthecompilationof"/tmp/tmpxft_00004921_00000000-19_nesterov_solver.compute_61.cpp1.ii".Mak

c++ - Caffe中的CHECK & CHECK_EQ等类函数宏的定义具体在哪里?

正如我所注意到的,有很多类似函数的宏,例如CHECK、CHECK_EQ、...在Caffe头文件和源文件中经常使用,例如在blob.cpp中我们有:templatevoidBlob::FromProto(constBlobProto&proto,boolreshape){if(reshape){vectorshape;if(proto.has_num()||proto.has_channels()||proto.has_height()||proto.has_width()){//Usingdeprecated4DBlobdimensions--//shapeis(num,channe

c++ - Protocol Buffer 错误版本

我正在尝试安装Caffe库,但由于我的系统中安装了错误的protobuf版本,我遇到了编译问题。Infileincludedfrom.build_release/src/caffe/proto/caffe.pb.cc:5:0:.build_release/src/caffe/proto/caffe.pb.h:17:2:error:#errorThisfilewasgeneratedbyanolderversionofprotocwhichis#errorThisfilewasgeneratedbyanolderversionofprotocwhichis^.build_release/