intel / ros_object_analytics

Apache License 2.0
182 stars 57 forks source link

change CNN model to TinyYolo #27

Open ChampionRoy opened 6 years ago

ChampionRoy commented 6 years ago

CNN model of Movidius NCS is MobileNet now, how to change to Yolo or TinyYolo?

sharronliu commented 6 years ago

"ros_object_analytics/object_analytics_launch/launch/analytics_movidius_ncs.launch" is an example launch file. This can be customized to launch Movidius NCS with its parameters.

To launch TinyYolo, try appending these params when launching "ros_intel_movidius_ncs /movidius_ncs_launch/launch/includes/ncs_stream_detection.launch".

    <arg name="cnn_type" value="tinyyolo_v1" />
    <arg name="param_file" value="$(find movidius_ncs_launch)/config/tinyyolo_v1.yaml" />
ChampionRoy commented 6 years ago

@sharronliu thank you for response. I followed your answer but has other problems when launch rviz, let me look into it. Thanks to your help, have a nice day!

ChampionRoy commented 6 years ago

I changed CNN model to tinyyolo, and when the realsense detected some objects, the node crashed. some log show as below: [object_analytics/ObjectAnalyticsMgr-1] process has died [pid 23463, exit code -11, cmd /opt/ros/kinetic/lib/nodelet/nodelet manager __name:=ObjectAnalyticsMgr __log:=/home/tmirobot/.ros/log/0a258330-3319-11e8-a048-88b111011909/object_analytics-ObjectAnalyticsMgr-1.log]. log file: /home/tmirobot/.ros/log/0a258330-3319-11e8-a048-88b111011909/object_analytics-ObjectAnalyticsMgr-1*.log [ INFO] [1522304415.424169615]: Bond broken, exiting [ INFO] [1522304415.523944463]: Bond broken, exiting [object_analytics/movidius_ncs_stream-6] process has finished cleanly log file: /home/tmirobot/.ros/log/0a258330-3319-11e8-a048-88b111011909/object_analytics-movidius_ncs_stream-6*.log [object_analytics/merger-4] process has finished cleanly log file: /home/tmirobot/.ros/log/0a258330-3319-11e8-a048-88b111011909/object_analytics-merger-4*.log [ INFO] [1522304415.961441629]: Bond broken, exiting [ INFO] [1522304416.008400694]: Bond broken, exiting [ INFO] [1522304416.016608103]: Bond broken, exiting [object_analytics/splitter-2] process has finished cleanly log file: /home/tmirobot/.ros/log/0a258330-3319-11e8-a048-88b111011909/object_analytics-splitter-2*.log [object_analytics/segmenter-3] process has finished cleanly log file: /home/tmirobot/.ros/log/0a258330-3319-11e8-a048-88b111011909/object_analytics-segmenter-3*.log [object_analytics/tracker-5] process has finished cleanly log file: /home/tmirobot/.ros/log/0a258330-3319-11e8-a048-88b111011909/object_analytics-tracker-5*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done But I cannot find any of these log files on the designated path.

Peter9606 commented 6 years ago

@ChampionRoy could you please get latest ros_movidius_ncs source code and try again? There's a known issue in ros_movidius_ncs might result to crush, and it's now fixed. FYI: You might bumped into same issue as #26

ChampionRoy commented 6 years ago

@Peter9606 Yeah, there is no problem here. Thank you for your help.