I am trying to extract features using caffenet.caffemodel
. I implement extract_features.cpp
in Visual Studio. My caffe library is also build as static library and link to extract_features.exe
. When I run the code, I have error as
E0906 02:10:00.842056 4356 extract_features.cpp:74] Using CPU
F0906 02:10:04.035171 4356 layer_factory.hpp:88] Check failed: registry.count(t
ype) == 1 (0 vs. 1) Unknown layer type: ImageData (known types: )
*** Check failure stack trace: ***
The error happens at layer_factory.hpp
static shared_ptr<Layer<Dtype> > CreateLayer(const LayerParameter& param)
{
if (Caffe::root_solver()) {
LOG(INFO) << "Creating layer " << param.name();
}
const string& type = param.type();
CreatorRegistry& registry = Registry();
CHECK_EQ(registry.count(type), 1) << "Unknown layer type: " << type
<< " (known types: " << LayerTypeListString() << ")";
return registry[type](param);
}
Initially was I thought Link error. Now I look more carefully and realized that not linker issue. What could be the error?