yonghenglh6 / DepthwiseConvolution

A personal depthwise convolution layer implementation on caffe by liuhao.(only GPU)
525 stars 185 forks source link

Unknow layer type: DepwiseConvolution #10

Closed Derekglk closed 7 years ago

Derekglk commented 7 years ago

Hi, I've placed those threes files under the corresponding folders. Then I go to caffe root dir to execute make clean && make -j4 all. But when I ran my network, it says: I1114 07:16:55.252534 10776 layer_factory.hpp:77] Creating layer conv2_1/dw F1114 07:16:55.252562 10776 layer_factory.hpp:81] Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: DeptwiseConvolution (known types: AbsVal, Accuracy, ArgMax, BNLL, BatchNorm, BatchReindex, Bias, Concat, ContrastiveLoss, Convoltion, Crop, Data, Deconvolution, Dropout, DummyData, ELU, Eltwise, Embed, EuclideanLoss, Exp, Filter, Flatten, HDF5Data, HDFOutput, HingeLoss, Im2col, ImageData, InfogainLoss, InnerProduct, Input, LRN, LSTM, LSTMUnit, Log, MVN, MemoryData, MultinomalLogisticLoss, PReLU, Parameter, Pooling, Power, Python, RNN, ReLU, Reduction, Reshape, SPP, Scale, Sigmoid, SigmoidCrossEnropyLoss, Silence, Slice, Softmax, SoftmaxWithLoss, Split, TanH, Threshold, Tile, WindowData) *** Check failure stack trace: *** Aborted Is there any possible reasons? Or are there extra files to modify? thanks a lot

Derekglk commented 7 years ago

And from the compile log: [ 40%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/contrastive_loss_layer.cpp.o [ 40%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/crop_layer.cpp.o [ 40%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/slice_layer.cpp.o [ 41%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/cudnn_tanh_layer.cpp.o [ 41%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/parameter_layer.cpp.o [ 41%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/cudnn_lcn_layer.cpp.o [ 43%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/reduction_layer.cpp.o [ 43%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/infogain_loss_layer.cpp.o [ 43%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/relu_layer.cpp.o [ 44%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/mvn_layer.cpp.o [ 44%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/hdf5_output_layer.cpp.o [ 45%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/cudnn_sigmoid_layer.cpp.o [ 45%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/im2col_layer.cpp.o [ 45%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/image_data_layer.cpp.o [ 47%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/split_layer.cpp.o [ 47%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/base_conv_layer.cpp.o [ 47%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/recurrent_layer.cpp.o [ 48%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/silence_layer.cpp.o [ 48%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/tanh_layer.cpp.o [ 50%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/accuracy_layer.cpp.o [ 50%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/absval_layer.cpp.o [ 50%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/lstm_unit_layer.cpp.o [ 51%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/argmax_layer.cpp.o [ 51%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/cudnn_softmax_layer.cpp.o [ 51%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/lstm_layer.cpp.o [ 52%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/cudnn_relu_layer.cpp.o [ 52%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/window_data_layer.cpp.o [ 52%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/exp_layer.cpp.o [ 54%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/power_layer.cpp.o [ 54%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/loss_layer.cpp.o [ 55%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/lrn_layer.cpp.o [ 55%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/rnn_layer.cpp.o [ 55%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/cudnn_pooling_layer.cpp.o [ 56%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/flatten_layer.cpp.o [ 56%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/eltwise_layer.cpp.o [ 56%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/sigmoid_cross_entropy_loss_layer.cpp.o [ 58%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/hdf5_data_layer.cpp.o [ 58%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/euclidean_loss_layer.cpp.o [ 59%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/tile_layer.cpp.o [ 59%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/neuron_layer.cpp.o [ 59%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/concat_layer.cpp.o [ 60%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/batch_reindex_layer.cpp.o [ 60%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/bnll_layer.cpp.o [ 60%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/threshold_layer.cpp.o [ 62%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/conv_layer.cpp.o [ 62%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/filter_layer.cpp.o [ 62%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/dropout_layer.cpp.o [ 63%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/cudnn_conv_layer.cpp.o [ 63%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/pooling_layer.cpp.o [ 64%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/bias_layer.cpp.o [ 64%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/reshape_layer.cpp.o [ 64%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/scale_layer.cpp.o [ 66%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/memory_data_layer.cpp.o [ 66%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/embed_layer.cpp.o [ 66%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/deconv_layer.cpp.o [ 67%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/prelu_layer.cpp.o [ 67%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/elu_layer.cpp.o [ 68%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/hinge_loss_layer.cpp.o [ 68%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/base_data_layer.cpp.o [ 68%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/cudnn_lrn_layer.cpp.o [ 70%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/dummy_data_layer.cpp.o [ 70%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/multinomial_logistic_loss_layer.cpp.o [ 70%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/inner_product_layer.cpp.o [ 71%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/sigmoid_layer.cpp.o [ 71%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/batch_norm_layer.cpp.o [ 71%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/data_layer.cpp.o [ 72%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/softmax_layer.cpp.o [ 72%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/log_layer.cpp.o [ 74%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/spp_layer.cpp.o [ 74%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/softmax_loss_layer.cpp.o [ 74%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/input_layer.cpp.o There's no depthwise_conv_layer being compiled.... What might be wrong?

yonghenglh6 commented 7 years ago

Are you in windows caffe?

Derekglk commented 7 years ago

@yonghenglh6 No, I'm in Ubuntu 16.04. I just re-downloaded caffe, and re-copied DepthwiseConvolution files. This time it works xD I think maybe an extra "cmake ." is necessary? I'm not sure. I'll try and post the result here.

Derekglk commented 7 years ago

Yeah, indeed, cmake again did the trick Thanks, great work man!