Caffe_Manual icon indicating copy to clipboard operation
Caffe_Manual copied to clipboard

如果有训练好的模型,作者您提供的代码能把某一层的特征提取出来吗?具体应该如何操作呢?

Open GengCauWong opened this issue 10 years ago • 7 comments
trafficstars

GengCauWong avatar Oct 10 '15 08:10 GengCauWong

仔细阅读 https://github.com/shicai/Caffe_Manual/blob/master/get_features.cpp 或者第一个issue,都有提到

shicai avatar Oct 10 '15 11:10 shicai

您好,我主要是在linux下编译的时候总出错误,貌似问题出在protobuf上,麻烦您能说一下在linux下编译的步骤么?

GengCauWong avatar Oct 12 '15 09:10 GengCauWong

@xxlylf 是编译caffe出错,还是编译get_feature出错?如果是后者,请贴上错误信息,如果是前者,请到caffe的issue下找答案

shicai avatar Oct 12 '15 11:10 shicai

2015-10-13 09 20 47 请您帮我看一下,我这个编译有问题

GengCauWong avatar Oct 13 '15 01:10 GengCauWong

这个文件依赖于caffe,你单独编译是编不出来的。。。 你把get_features.cpp放在caffe的tools目录下,然后make一次caffe就可以了

shicai avatar Oct 13 '15 02:10 shicai

我写了一个在 Xcode 里编译这个 repository 的方法,这样就可以进行单步调试了。 对于 Linux 下的 eclipse, 同样的思路也应该适用。 http://coldmooon.github.io/2015/08/14/compile_caffe_cpp/

Coldmooon avatar Oct 15 '15 10:10 Coldmooon

您好,我现在可以成功提取特征了,用caffenet这个模型实验的,但是我自己训练的模型没有成功,错误提示应该是网络配置文件出了问题,您能帮我看看我哪里写的不对么?或者是在您代码的基础上我需要做什么改动2015-10-16 17 07 29

GengCauWong avatar Oct 16 '15 09:10 GengCauWong