Error in Using Nvidia DIGITS trained Models in OpenCV

211 views Asked by At

I Trained my model using DIGITS ( NVCaffe) and I use it in opencv similar to opencv example that use .prototxt & .caffemodel and i tested it and work good. But when I use Models that trained by digits i got this error:

OpenCV Error: Assertion failed (pbBlob.raw_data_type() == 
caffe::FLOAT16) in blobFromProto, file 
/opt/opencv/modules/dnn/src/caffe/caffe_importer.cpp, line 242
Exception:  /opt/opencv/modules/dnn/src/caffe/caffe_importer.cpp:242: 
error: (-215) pbBlob.raw_data_type() == caffe::FLOAT16 in function 
blobFromProto

help me to solve it! this problem mentioned many times ago without answer! http://answers.opencv.org/question/177086/unable-to-use-caffe-model-trained-in-nvidia-digits-in-opencv-dnn-code/

1

There are 1 answers

0
Nukul Khadse On

OpenCV suppports models trained in BVLC format and not NVCaffe. Try training your model by changing the solver parameter from NVCaffe to Compatible in DIGITS.