Items with no label
3338 Discussions

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

Hwei7
Débutant
2 846 Visites

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 Compliments
1 Solution
Cary_P_Intel
Employé
1 519 Visites

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?

Voir la solution dans l'envoi d'origine

0 Compliments
3 Réponses
idata
Employé
1 519 Visites

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 Compliments
Cary_P_Intel
Employé
1 520 Visites

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 Compliments
Hwei7
Débutant
1 519 Visites

Thanks CaryPai, the problem is solved.

0 Compliments
Répondre