knsong / caffe-mt Goto Github PK
View Code? Open in Web Editor NEWThis is a fork of caffe added some useful layers, the original caffe site is https://github.com/BVLC/caffe.
License: Other
This is a fork of caffe added some useful layers, the original caffe site is https://github.com/BVLC/caffe.
License: Other
Recently I have been making research on batch normalization using caffe(https://github.com/BVLC/caffe). Though there have been some versions of caffe with batch normalization feature, but I found their batch mean and variance were a little different with what the original paper meant, so, I decided to try to write batch normalization layer by myself.
When I try to Compilation with Make, in "make all" step, I faced the error
"caffe.proto:385:12: LocalConvolutionParameter" is not defined".
"Makefile:629: recipe for target .build_release/src/caffe/proto/caffe.pb.cc failed"
Hi, I got the following error when I compile the code. Did I miss anything ?
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/data_reader.cpp
CXX src/caffe/data_transformer.cpp
CXX src/caffe/parallel.cpp
CXX src/caffe/layer_factory.cpp
CXX src/caffe/blob.cpp
CXX src/caffe/solvers/sgd_solver.cpp
CXX src/caffe/solver.cpp
CXX src/caffe/util/signal_handler.cpp
CXX src/caffe/util/blocking_queue.cpp
CXX src/caffe/util/benchmark.cpp
CXX src/caffe/util/math_functions.cpp
CXX src/caffe/net.cpp
CXX src/caffe/common.cpp
CXX src/caffe/layers/infogain_loss_layer.cpp
CXX src/caffe/layers/base_data_layer.cpp
CXX src/caffe/layers/cudnn_sigmoid_layer.cpp
CXX src/caffe/layers/cudnn_lrn_layer.cpp
CXX src/caffe/layers/eltwise_bn_layer.cpp
CXX src/caffe/layers/slice_layer.cpp
CXX src/caffe/layers/elu_layer.cpp
CXX src/caffe/layers/loss_layer.cpp
CXX src/caffe/layers/threshold_layer.cpp
CXX src/caffe/layers/memory_data_layer.cpp
CXX src/caffe/layers/scale_layer.cpp
CXX src/caffe/layers/absval_layer.cpp
CXX src/caffe/layers/lrn_layer.cpp
CXX src/caffe/layers/mvn_layer.cpp
CXX src/caffe/layers/concat_layer.cpp
CXX src/caffe/layers/hdf5_output_layer.cpp
CXX src/caffe/layers/inner_product_layer.cpp
CXX src/caffe/layers/prelu_layer.cpp
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetBNLayer(const caffe::LayerParameter&)’:
src/caffe/layer_factory.cpp:41:37: error: expected primary-expression before ‘(’ token
return shared_ptr<Layer >(new ChannlWiseBNLayer(param));
^
src/caffe/layer_factory.cpp:41:42: error: expected type-specifier before ‘ChannlWiseBNLayer’
return shared_ptr<Layer >(new ChannlWiseBNLayer(param));
^
src/caffe/layer_factory.cpp:43:37: error: expected primary-expression before ‘(’ token
return shared_ptr<Layer >(new EltWiseBNLayer(param));
^
src/caffe/layer_factory.cpp:43:42: error: expected type-specifier before ‘EltWiseBNLayer’
return shared_ptr<Layer >(new EltWiseBNLayer(param));
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetTanHLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:252:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetTanHLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:252:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetSoftmaxLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:229:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetSoftmaxLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:229:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetSigmoidLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:206:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetSigmoidLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:206:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetReLULayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:183:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetReLULayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:183:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetLRNLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:160:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetLRNLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:160:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetPoolingLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:123:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetPoolingLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:123:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetConvolutionLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:86:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetConvolutionLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:86:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetBNLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:47:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetBNLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:47:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [.build_release/src/caffe/layer_factory.o] Error 1
make: *** Waiting for unfinished jobs....
Hi, I got the following error when I run test the code on ubuntu 14.04. Can anybody help?
[ RUN ] LocalConvolutionLayerTest/2.TestLocalConvolution
F1107 15:15:44.629595 13247 blob.hpp:173] Check failed: indices[i] < shape(i) (1 vs. 1)
*** Check failure stack trace: ***
@ 0x2b022ededdbd google::LogMessage::Fail()
@ 0x2b022edefc5d google::LogMessage::SendToLog()
@ 0x2b022eded9ac google::LogMessage::Flush()
@ 0x2b022edf057e google::LogMessageFatal::~LogMessageFatal()
@ 0x6f5879 caffe::caffe_conv<>()
@ 0x732056 caffe::caffe_loc_conv<>()
@ 0x737645 caffe::LocalConvolutionLayerTest_TestLocalConvolution_Test<>::TestBody()
@ 0x90f8e3 testing::internal::HandleExceptionsInMethodIfSupported<>()
@ 0x9065c7 testing::Test::Run()
@ 0x90666e testing::TestInfo::Run()
@ 0x906775 testing::TestCase::Run()
@ 0x909ab8 testing::internal::UnitTestImpl::RunAllTests()
@ 0x909d47 testing::UnitTest::Run()
@ 0x46edbf main
@ 0x2b0232455f45 (unknown)
@ 0x476ab9 (unknown)
make: *** [runtest] Aborted (core dumped)
Hi, I want to add locally connected layer to my caffe, So I did everything that write in this link, after that I open a terminal and change directory to caffe root and try make
command but I get below error.
PROTOC src/caffe/proto/caffe.proto
NVCC src/caffe/solvers/adagrad_solver.cu
NVCC src/caffe/solvers/adam_solver.cu
caffe.proto:386:12: "LocalConvolutionParameter" is not defined.
Makefile:638: recipe for target '.build_release/src/caffe/proto/caffe.pb.cc' failed
but I'm sure that I add LocalConvolutionParameter
to my caffe.proto
!! I don't have any idea about caffe.pb.cc
and caffe.pb.h
files. My caffe.proto
file can be accessed via this link.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.