Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caffe Windows Unknown layer type: Input #5627

Closed
hanbim520 opened this issue May 15, 2017 · 2 comments
Closed

Caffe Windows Unknown layer type: Input #5627

hanbim520 opened this issue May 15, 2017 · 2 comments
Labels

Comments

@hanbim520
Copy link

hanbim520 commented May 15, 2017

I compiled the caffe, using the build_win.cmd, the code is also written through the compiler, when running wrong.

layer_factory.cpp

const string& type = param.type();
CreatorRegistry& registry = Registry();
CHECK_EQ(registry.count(type), 1)
<< "Unknown layer type: " << type
<< " (known types: " << LayerTypeListString() << ")";
return registrytype;

"Unknown layer type:Input
Uploading 1.png…

@willyd willyd added the windows label May 16, 2017
@willyd
Copy link
Contributor

willyd commented May 16, 2017

Under what circumstances to you get this error message? When running caffe.exe?

@hanbim520
Copy link
Author

hanbim520 commented May 16, 2017

this error I have fix by this code:
#include "caffe/common.hpp"
#include "caffe/layers/input_layer.hpp"
#include "caffe/layers/inner_product_layer.hpp"
#include "caffe/layers/dropout_layer.hpp"
#include "caffe/layers/conv_layer.hpp"
#include "caffe/layers/relu_layer.hpp"

#include "caffe/layers/pooling_layer.hpp"
#include "caffe/layers/lrn_layer.hpp"
#include "caffe/layers/softmax_layer.hpp"
#include "caffe/layers/prelu_layer.hpp"
#include "caffe/layers/memory_data_layer.hpp"

namespace caffe
{

extern INSTANTIATE_CLASS(InputLayer);
extern INSTANTIATE_CLASS(InnerProductLayer);
extern INSTANTIATE_CLASS(DropoutLayer);
extern INSTANTIATE_CLASS(ReLULayer);
extern INSTANTIATE_CLASS(PoolingLayer);
extern INSTANTIATE_CLASS(LRNLayer);
extern INSTANTIATE_CLASS(SoftmaxLayer);
extern INSTANTIATE_CLASS(PReLULayer);
extern INSTANTIATE_CLASS(MemoryDataLayer);

}

but new error in flow code:
caffe::MemoryDataLayer *m_layer_ = (caffe::MemoryDataLayer *)net->layers()[0].get();
m_layer
->AddMatVector(dv, label);
image
I have define USE_OPENCV, vs 2015
I don't know how to fix it.I need help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants