Items with no label
3335 Discussions

DNN example can not work in setting up the network for D415

Hwei7
Beginner
1,878 Views

The DNN example code in github, I run it, but failed to set up the DNN network.

https://github.com/IntelRealSense/librealsense/tree/development/wrappers/opencv/dnn https://github.com/IntelRealSense/librealsense/tree/development/wrappers/opencv/dnn

I use openCV3.4.1, and download the file"MobileNetSSD_deploy.prototxt" "MobileNetSSD_deploy.caffemodel" from https://github.com/chuanqi305/MobileNet-SSD GitHub - chuanqi305/MobileNet-SSD: Caffe implementation of Google MobileNet SSD detection network, with pretrained weigh…

However, after compiled successfully, and when I run .exe file, the error occurs in setting up the DNN network.

Net net = readNetFromCaffe("MobileNetSSD_deploy.prototxt", "MobileNetSSD_deploy.caffemodel");

The error is :

[libprotobuf ERROR C:\build\master_winpack-build-win64-vc14\opencv\3rdparty\protobuf\src\google\protobuf\text_format.cc:288] Error parsing text-format opencv_caffe.Net

Parameter: 7:1: Expected identifier, got:

I think this error should be that I used the wrong DNN configuration file, did anyone know the correct two configuration file the DNN example ??

Thanks in advance!

0 Kudos
1 Solution
Cary_P_Intel
Employee
551 Views

Hi, Huawei,

Which way did you download the MobileNetSSD_deploy.txt, the error might cause because of the bad format inside the text file. Could you try to remove the txt file and regenerated one and then copy the content from https://github.com/chuanqi305/MobileNet-SSD/blob/master/MobileNetSSD_deploy.prototxt MobileNet-SSD/MobileNetSSD_deploy.prototxt at master · chuanqi305/MobileNet-SSD · GitHub again with "raw" format?

View solution in original post

0 Kudos
3 Replies
idata
Employee
551 Views

Hello @HuaWei,

 

 

We have forwarded your question to engineering and will update this thread as soon as we get a response from them.

 

 

Regards,

 

Jesus G.

 

Intel Customer Support
0 Kudos
Cary_P_Intel
Employee
552 Views

Hi, Huawei,

Which way did you download the MobileNetSSD_deploy.txt, the error might cause because of the bad format inside the text file. Could you try to remove the txt file and regenerated one and then copy the content from https://github.com/chuanqi305/MobileNet-SSD/blob/master/MobileNetSSD_deploy.prototxt MobileNet-SSD/MobileNetSSD_deploy.prototxt at master · chuanqi305/MobileNet-SSD · GitHub again with "raw" format?

0 Kudos
Hwei7
Beginner
551 Views

Thanks CaryPai, the problem is solved.

0 Kudos
Reply