faustomilletari / VNet

GNU General Public License v3.0
286 stars 122 forks source link

#Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python #31

Open wxde opened 7 years ago

wxde commented 7 years ago

when I python main.py , the error is below: Creating layer loss F0419 21:23:01.980463 3190 layer_factory.hpp:77] Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python (known types: AbsVal, Accuracy, ArgMax, BNLL, Concat, ContrastiveLoss, Convolution, Data, Deconvolution, Dropout, DummyData, Eltwise, EuclideanLoss, Exp, Filter, Flatten, HDF5Data, HDF5Output, HingeLoss, Im2col, ImageData, InfogainLoss, InnerProduct, LRN, Log, MVN, MemoryData, MultinomialLogisticLoss, PReLU, Pooling, Power, ReLU, Reduction, Reshape, SPP, Sigmoid, SigmoidCrossEntropyLoss, Silence, Slice, Softmax, SoftmaxWithLoss, Split, TanH, Threshold, WindowData) Check failure stack trace: Aborted (core dumped) # How can I do for it . and what version of your cudnn? thank you

faustomilletari commented 7 years ago

Hello,

I think you should use 3d caffe which is available in another repository on my github.

Latest cudnn should work.

Fausto Milletarì Sent from my iPhone

On 19. Apr 2017, at 09:35, wxde notifications@github.com wrote:

when I python main.py , the error is below: Creating layer loss F0419 21:23:01.980463 3190 layer_factory.hpp:77] Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python (known types: AbsVal, Accuracy, ArgMax, BNLL, Concat, ContrastiveLoss, Convolution, Data, Deconvolution, Dropout, DummyData, Eltwise, EuclideanLoss, Exp, Filter, Flatten, HDF5Data, HDF5Output, HingeLoss, Im2col, ImageData, InfogainLoss, InnerProduct, LRN, Log, MVN, MemoryData, MultinomialLogisticLoss, PReLU, Pooling, Power, ReLU, Reduction, Reshape, SPP, Sigmoid, SigmoidCrossEntropyLoss, Silence, Slice, Softmax, SoftmaxWithLoss, Split, TanH, Threshold, WindowData) Check failure stack trace: Aborted (core dumped)

How can I do for it . and what version of your cudnn? thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

wxde commented 7 years ago

hi fausto I am using your 3D-caffe.and my version of cudnn is 5.1

faustomilletari commented 7 years ago

It sounds a bit weird because caffe is complaining that he does not know what a python layer is. But python layers are supported in caffe since long time! And also supported in 3d caffe.

Be sure by checking your pythonpath environment variable that you are using actually the caffe you have compiled from 3d caffe sources.

Fausto Milletarì Sent from my iPhone

On 19. Apr 2017, at 09:47, wxde notifications@github.com wrote:

hi fausto I am using your 3D-caffe.and my version of cudnn is 5.1

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

wxde commented 7 years ago

I have check my pythonpath environment variable. it is corrected .

faustomilletari commented 7 years ago

when you compiled caffe you did also make pycaffe and then make install, right?

On 19 Apr 2017, at 10:44, wxde notifications@github.com wrote:

I have check my pythonpath environment variable. it is correct .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/faustomilletari/VNet/issues/31#issuecomment-295294720, or mute the thread https://github.com/notifications/unsubscribe-auth/AMtsvpIbOTLP7oXr7Nwa8buZJ9kEFUqTks5rxh26gaJpZM4NBsMl.

l35633 commented 7 years ago

hi, friend! I met the same problem with the correct 3D caffe version and path? how to resolve it? any good ideas? Thank you very much!

l35633 commented 7 years ago

It is said in google that changing this flag WITH_PYTHON_LAYER := 1 in Makefile.config right? Thanks a lot! I am trying now make clean make all

l35633 commented 7 years ago

It is really this problem, after changed it. It runs so beautifully!

angyee commented 4 years ago

Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Relu (known types: AbsVal, Accuracy, ArgMax, BNLL, BatchNorm, BatchReindex, Bias, Concat, ContrastiveLoss, Convolution, Crop, Data, Deconvolution, Dropout, DummyData, ELU, Eltwise, Embed, EuclideanLoss, Exp, Filter, Flatten, HDF5Data, HDF5Output, HingeLoss, Im2col, ImageData, InfogainLoss, InnerProduct, Input, LRN, LSTM, LSTMUnit, Log, MVN, MemoryData, MultinomialLogisticLoss, PReLU, Parameter, Pooling, Power, Python, RNN, ReLU, Reduction, Reshape, SPP, Scale, Sigmoid, SigmoidCrossEntropyLoss, Silence, Slice, Softmax, SoftmaxWithLoss, Split, TanH, Threshold, Tile, WindowData) Check failure stack trace: Aborted