Input layer problem (Windows)

27 views
Skip to first unread message

NoodLez0000

unread,
Dec 9, 2017, 2:26:32 PM12/9/17
to Caffe Users
I have a problem with input layer in caffe. I'm trying to initialize my net with lenet model from examples (https://github.com/BVLC/caffe/blob/windows/examples/mnist/lenet.prototxt).

CODE:

Caffe::set_mode(Caffe::Brew::GPU);
Caffe::SetDevice(0);
Net<float> net("lenet.prototxt", TEST);

My application always crashed in layer_factory.cpp 

For some reason, it can't recognize input layer, what i do wrong?

NoodLez0000

unread,
Dec 10, 2017, 3:50:58 PM12/10/17
to Caffe Users
Solved problem. Who struggeling with "Input layer" error, "Data layer" error, just add in visual studio project in linker options "Link Library Dependencies" to "Yes" and "Use Library Dependency Inputs" to "Yes", also add refference to caffe and caffeproto projects.
Reply all
Reply to author
Forward
0 new messages