سلام خسته نباشید
من لایه زیر رو تعریف کردم
layer {
type: 'Python'
name: 'py_accuracy'
top: 'py_accuracy'
bottom: 'conv5'
bottom: 'label'
python_param {
# the module name, usually the filename
# that needs to be in $PYTHONPATH
module: 'python_confmat'
# the layer name, the class name in the module
layer: 'PythonConfMat'
# this is the number of test iterations,
# it must be the same as defined in the solver.
param_str: '{"test_iter":270}'
}
include {
phase: TEST
}
}
بعد همچین خطایی دریافت کردم
> ype) == 1 (0 vs. 1) Unknown layer type: Python (known types: AbsVal,
> Accuracy, A rgMax, BNLL, BatchNorm, BatchReindex, Bias, Concat,
> ContrastiveLoss, Convolution , Crop, Data, Deconvolution, Dropout,
> DummyData, ELU, Eltwise, Embed, EuclideanL oss, Exp, Filter, Flatten,
> HDF5Data, HDF5Output, HingeLoss, Im2col, ImageData, I nfogainLoss,
> InnerProduct, Input, LRN, Log, MVN, MemoryData, MultinomialLogistic
> Loss, PReLU, Parameter, Pooling, Power, ReLU, Reduction, Reshape, SPP,
> Scale, Si gmoid, SigmoidCrossEntropyLoss, Silence, Slice, Softmax,
> SoftmaxWithLoss, Split, TanH, Threshold, Tile, WindowData)
> *** Check failure stack trace: ***
بعد سرچ کردم دیدم میگن باید تو فایل Makefile.config عبارت WITH_PYTHON_LAYER := 1 از کامنت دربیارم و دوباره بیلد کنم. هین کارها رو کردم ولی مشکلم حل نشد :(