VNet icon indicating copy to clipboard operation
VNet copied to clipboard

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

Open wxde opened this issue 8 years ago • 9 comments

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

wxde avatar Apr 19 '17 13:04 wxde

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 [email protected] 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.

faustomilletari avatar Apr 19 '17 13:04 faustomilletari

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

wxde avatar Apr 19 '17 13:04 wxde

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 [email protected] 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.

faustomilletari avatar Apr 19 '17 13:04 faustomilletari

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

wxde avatar Apr 19 '17 14:04 wxde

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

On 19 Apr 2017, at 10:44, wxde [email protected] 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.

faustomilletari avatar Apr 19 '17 15:04 faustomilletari

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 avatar May 01 '17 15:05 l35633

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 avatar May 01 '17 15:05 l35633

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

l35633 avatar May 01 '17 15:05 l35633

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

angyee avatar Mar 07 '20 11:03 angyee