Reagarding Faster_RCNN model

asked 2018-01-26 04:11:17 -0500

vps gravatar image

updated 2018-01-26 08:19:01 -0500

Hi All, I am trying to run Faster_rcnn model in opencv with c++. link text

error: The program '[1144] DNN testing.exe' has exited with code 0 (0x0). First time, I am trying dnn model. Anyone have idea about this?

Thanksimage description(/upfiles/15169762878063704.png)image description

edit retag flag offensive close merge delete


how do you invoke the program ? it needs cmdline arguments, like:

faster_rcnn.exe -m=faster_rcnn_model    -p=faster_rcnn_vgg16.prototxt -i=some_imge.png

(sorry, idk, how the model is actually called)

berak gravatar imageberak ( 2018-01-26 04:27:10 -0500 )edit

Thanks for your reply berak. Is there need to add the .prototext and .caffemeodel in directory?

vps gravatar imagevps ( 2018-01-26 04:49:52 -0500 )edit

you need to have those files, it does not matter, where. pass the absolute path to them in the cmdline argument

berak gravatar imageberak ( 2018-01-26 04:58:33 -0500 )edit

I have added the model prototext and model files in respective folder and cmline arguments are.. DNN testing.exe -p=faster_rcnn_vgg16.prototxt -m=coco_vgg16_faster_rcnn_final.caffemodel -i=test.png

Error: screenshot is attached.

vps gravatar imagevps ( 2018-01-26 06:11:31 -0500 )edit

i removed your screenshot. please edit again, and add the errormsg as text !

berak gravatar imageberak ( 2018-01-26 06:14:27 -0500 )edit

Hi Berak, Please find the below error message in text format.

[libprotobuf ERROR C:\build\master_winpack-build-win64-vc14\opencv\3rdparty\prot obuf\src\google\protobuf\] Error parsing text-format opencv_ca ffe.NetParameter: 7:1: Expected identifier, got: < OpenCV Error: Unspecified error (FAILED: ReadProtoFromTextFile(param_file, param ). Failed to parse NetParameter file: faster_rcnn_vgg16.prototxt) in cv::dnn::Re adNetParamsFromTextFileOrDie, file C:\build\master_winpack-build-win64-vc14\open cv\modules\dnn\src\caffe\caffe_io.cpp, line 1145

vps gravatar imagevps ( 2018-01-26 06:45:28 -0500 )edit

it is not an answer to your question but i just want to mention that maybe you can get better result ( afaik it is faster) using ssd_mobilenet_object_detection.cpp

image description

example_dnn-ssd_mobilenet_object_detection.exe -video=004545.jpg -opencl -model=D:/models/MobileNet/MobileNetSSD_deploy.caffemodel -proto=D:/models/MobileNet/MobileNetSSD_deploy.prototxt
sturkmen gravatar imagesturkmen ( 2018-01-26 06:45:48 -0500 )edit

Hi sturkmen, Thank you for the suggestion. I have tried above example. getting same error as per the above.

vps gravatar imagevps ( 2018-01-26 07:34:29 -0500 )edit

what is your build information

sturkmen gravatar imagesturkmen ( 2018-01-26 07:46:16 -0500 )edit

vps, please put that into your question, not into comments !

berak gravatar imageberak ( 2018-01-26 08:09:48 -0500 )edit