intel / ros_object_analytics

Apache License 2.0
182 stars 57 forks source link

help wanted #48

Open hyuegithub opened 5 years ago

hyuegithub commented 5 years ago

when I tried to launch the object_analytics_launch analytics_opencl_caffe.launch, it gets stuck at waiting for service /ObjectAnalyticsMgr/load_nodelet, waitForService: Service [/ObjectAnalyticsMgr/load_nodelet] has not been advertised, waiting... is there anything I missed while trying to use the package?anyone can help me?

yechun1 commented 5 years ago

which OS do you use? and would you please provide more error information?

hyuegithub commented 5 years ago

Thanks for your reply ,I am using Ubuntu16.04+ROS Kinetic+kinect1, After running the analytics_opencl_caffe.launch I always get the following error:

I1127 18:44:19.747236 22046 net.cpp:280] Network initialization done. I1127 18:44:19.747241 22046 net.cpp:281] Memory required for data: 86785584 [ INFO] [1543315459.928669138]: Load resources completely! [object_analytics/ObjectAnalyticsMgr-1] process has died [pid 22046, exit code -8, cmd /opt/ros/kinetic/lib/nodelet/nodelet manager __name:=ObjectAnalyticsMgr __log:=/home/user/.ros/log/5ecdc050-f231-11e8-adc1-1c1b0d23f337/object_analytics-ObjectAnalyticsMgr-1.log]. log file: /home/user/.ros/log/5ecdc050-f231-11e8-adc1-1c1b0d23f337/object_analytics-ObjectAnalyticsMgr-1*.log [ INFO] [1543315467.535394771]: Bond broken, exiting [object_analytics/tracker-5] process has finished cleanly log file: /home/user/.ros/log/5ecdc050-f231-11e8-adc1-1c1b0d23f337/object_analytics-tracker-5*.log [ INFO] [1543315468.031738817]: Bond broken, exiting [ INFO] [1543315468.031737320]: Bond broken, exiting [ INFO] [1543315468.031813338]: Bond broken, exiting [ INFO] [1543315468.032129962]: Bond broken, exiting [object_analytics/splitter-2] process has finished cleanly log file: /home/user/.ros/log/5ecdc050-f231-11e8-adc1-1c1b0d23f337/object_analytics-splitter-2*.log [object_analytics/segmenter-3] process has finished cleanly log file: /home/user/.ros/log/5ecdc050-f231-11e8-adc1-1c1b0d23f337/object_analytics-segmenter-3*.log [object_analytics/merger-4] process has finished cleanly log file: /home/user/.ros/log/5ecdc050-f231-11e8-adc1-1c1b0d23f337/object_analytics-merger-4*.log [object_analytics/detecter-6] process has finished cleanly log file: /home/user/.ros/log/5ecdc050-f231-11e8-adc1-1c1b0d23f337/object_analytics-detecter-6*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done

but running the demo_test of ros_opencl_caffe have no problem,and I checked if clCaffe is working properly,then i got this:

./tools/caffe device_query -gpu all I1127 19:12:11.362037 23255 common.cpp:556] Total devices: 1 I1127 19:12:11.362148 23255 common.cpp:557] CUDA devices: 0 I1127 19:12:11.362166 23255 common.cpp:558] OpenCL devices: 1 I1127 19:12:11.362171 23255 common.cpp:582] Device id: 0 I1127 19:12:11.362188 23255 common.cpp:584] Device backend: OpenCL I1127 19:12:11.362200 23255 common.cpp:586] Backend details: NVIDIA Corporation: OpenCL 1.2 CUDA 9.0.368 I1127 19:12:11.362205 23255 common.cpp:588] Device vendor: NVIDIA Corporation I1127 19:12:11.362298 23255 common.cpp:590] Name: GeForce GTX 1070 I1127 19:12:11.362434 23255 common.cpp:592] Total global memory: 8504868864 so i don't know where the issue is?

yechun1 commented 5 years ago

is there any more details from the log file under /home/user/.ros/log?

Peter9606 commented 5 years ago

@hyuegithub NVidia GPU is not a proper device for clCaffe to work with, but Intel integrated GPU.

hyuegithub commented 5 years ago

The information of ./home/user/.ros/log/5ecdc050-f231-11e8-adc1-1c1b0d23f337 like this: [ INFO] [1543315450.516730862]: Spinning until killed publishing /camera_link to /camera_rgb_frame I am trying to reinstall clCaffe.

hyuegithub commented 5 years ago

Thanks for your reply,you means that I missed some information when installing clCaffe? or the version of clCaffe I installed is wrong? or is the problem with hardware devices?

At 2018-11-28 09:45:11, "Peter Han" notifications@github.com wrote:

@hyuegithub NVidia GPU is not a proper device for clCaffe to work with, but Intel integrated GPU.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Peter9606 commented 5 years ago

@hyuegithub by clCaffe, which version are you using exactly?

yechun1 commented 5 years ago

@hyuegithub it seems the be loader issue, would you please remark the code of opencl in analytics_opencl_caffe.launch to and only launch OA modules, please attach all the logs print from console.

<!--
      <include file="$(find opencl_caffe_launch)/launch/includes/nodelet.launch">
          <arg name="manager"                   value="$(arg manager)" />
          <arg name="name"                      value="detecter" />
          <arg name="input_topic"               value="$(arg input_rgb)" />
          <arg name="output_topic"              value="$(arg input_detection)" />
      </include>
-->
hyuegithub commented 5 years ago

I am so happy to find out the wrong place,The issue is that I missed the one "intel-opencl-cpu-r4.1-61547.x86_64.rpm"when I installing the opencl SDK. Now it can recognizes two devices properly.

and I still not successfuly roslaunch the "roslaunch object_analytics_launch analytics_opencl_caffe.launch",occurred same error process has died .

so I continue to check clCaffe if properly work or not,I found when I running the command build/tools/caffe-fp16.bin test -model models/yolo/yolo416/yolo_fused_test.prototxt -phase TEST -iterations 1000000 -weights models/yolo/yolo416/fused_yolo.caffemodel -gpu 0, I got this error: terminate called after throwing an instance of 'viennacl::ocl::invalid_program_executable' what(): ViennaCL: FATAL ERROR: CL_INVALID_PROGRAM_EXECUTABLE.

and I reinstall the viennacl ,but it does't solve this problem.so what should I do?

hyuegithub commented 5 years ago

if I remark the code of opencl in analytics_opencl_caffe.launch to and only launch OA modules,the process will be stuck here:

`user@hy:~$ roslaunch object_analytics_launch analytics_opencl_caffe.launch ... logging to /home/user/.ros/log/0e386f5c-f2de-11e8-974e-1c1b0d23f337/roslaunch-hy-6837.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://localhost:34479/

SUMMARY

PARAMETERS

NODES /object_analytics/ ObjectAnalyticsMgr (nodelet/nodelet) merger (nodelet/nodelet) segmenter (nodelet/nodelet) splitter (nodelet/nodelet) tracker (nodelet/nodelet)

ROS_MASTER_URI=http://localhost:11311

process[object_analytics/ObjectAnalyticsMgr-1]: started with pid [6854] process[object_analytics/splitter-2]: started with pid [6855] process[object_analytics/segmenter-3]: started with pid [6856] process[object_analytics/merger-4]: started with pid [6857] [ INFO] [1543389632.826653260]: Loading nodelet /object_analytics/splitter of type object_analytics_nodelet/splitter/SplitterNodelet to manager ObjectAnalyticsMgr with the following remappings: [ INFO] [1543389632.826704295]: /camera/depth_registered/points -> /camera/depth_registered/points [ INFO] [1543389632.826719390]: /object_analytics/pointcloud -> /object_analytics/pointcloud [ INFO] [1543389632.826731322]: /object_analytics/rgb -> /object_analytics/rgb [ INFO] [1543389632.828158003]: waitForService: Service [/object_analytics/ObjectAnalyticsMgr/load_nodelet] has not been advertised, waiting... process[object_analytics/tracker-5]: started with pid [6870] [ INFO] [1543389632.830950534]: Loading nodelet /object_analytics/segmenter of type object_analytics_nodelet/segmenter/SegmenterNodelet to manager ObjectAnalyticsMgr with the following remappings: [ INFO] [1543389632.831004323]: /object_analytics/pointcloud -> /object_analytics/pointcloud [ INFO] [1543389632.831019320]: /object_analytics/segmentation -> /object_analytics/segmentation [ INFO] [1543389632.832079558]: waitForService: Service [/object_analytics/ObjectAnalyticsMgr/load_nodelet] has not been advertised, waiting... [ INFO] [1543389632.835141797]: Loading nodelet /object_analytics/merger of type object_analytics_nodelet/merger/MergerNodelet to manager ObjectAnalyticsMgr with the following remappings: [ INFO] [1543389632.835205043]: /object_analytics/detection -> /object_analytics/detection [ INFO] [1543389632.835218412]: /object_analytics/localization -> /object_analytics/localization [ INFO] [1543389632.835239477]: /object_analytics/segmentation -> /object_analytics/segmentation [ INFO] [1543389632.836431650]: waitForService: Service [/object_analytics/ObjectAnalyticsMgr/load_nodelet] has not been advertised, waiting... [ INFO] [1543389632.839309913]: Loading nodelet /object_analytics/tracker of type object_analytics_nodelet/tracker/TrackingNodelet to manager ObjectAnalyticsMgr with the following remappings: [ INFO] [1543389632.839357095]: /object_analytics/detection -> /object_analytics/detection [ INFO] [1543389632.839375971]: /object_analytics/rgb -> /object_analytics/rgb [ INFO] [1543389632.839390512]: /object_analytics/tracking -> /object_analytics/tracking [ INFO] [1543389632.841483105]: waitForService: Service [/object_analytics/ObjectAnalyticsMgr/load_nodelet] has not been advertised, waiting... [ INFO] [1543389632.919382256]: Initializing nodelet with 6 worker threads. [ INFO] [1543389632.923644263]: waitForService: Service [/object_analytics/ObjectAnalyticsMgr/load_nodelet] is now available. [ INFO] [1543389632.931225074]: waitForService: Service [/object_analytics/ObjectAnalyticsMgr/load_nodelet] is now available. [ INFO] [1543389632.934919709]: waitForService: Service [/object_analytics/ObjectAnalyticsMgr/load_nodelet] is now available. [ INFO] [1543389632.939236869]: waitForService: Service [/object_analytics/ObjectAnalyticsMgr/load_nodelet] is now available.

`

Peter9606 commented 5 years ago

@hyuegithub what you show above is as design. you cannot expect any more progress w/o 2D detection node running.

Jiang1206 commented 5 years ago

我很高兴找到错误的地方,问题是我在安装opencl SDK时错过了“intel-opencl-cpu-r4.1-61547.x86_64.rpm”。现在它可以正确识别两个设备。

我仍然没有成功地发布了roslaunch“roslaunch object_analytics_launch analytics_opencl_caffe.launch”,发生了同样的错误process has died

所以我继续检查clCaffe是否正常工作,我发现当我运行命令时 build/tools/caffe-fp16.bin test -model models/yolo/yolo416/yolo_fused_test.prototxt -phase TEST -iterations 1000000 -weights models/yolo/yolo416/fused_yolo.caffemodel -gpu 0, 我收到此错误: terminate called after throwing an instance of 'viennacl::ocl::invalid_program_executable' what(): ViennaCL: FATAL ERROR: CL_INVALID_PROGRAM_EXECUTABLE.

我重新安装了viennacl,但它没有解决这个问题。那我该怎么办?

I also encountered the same problem. Has this problem been solved?

hyuegithub commented 5 years ago

我很高兴找到错误的地方,问题是我在安装opencl SDK时错过了“intel-opencl-cpu-r4.1-61547.x86_64.rpm”。现在它可以正确识别两个设备。 我仍然没有成功地发布了roslaunch“roslaunch object_analytics_launch analytics_opencl_caffe.launch”,发生了同样的错误process has died。 所以我继续检查clCaffe是否正常工作,我发现当我运行命令时 build/tools/caffe-fp16.bin test -model models/yolo/yolo416/yolo_fused_test.prototxt -phase TEST -iterations 1000000 -weights models/yolo/yolo416/fused_yolo.caffemodel -gpu 0, 我收到此错误: terminate called after throwing an instance of 'viennacl::ocl::invalid_program_executable' what(): ViennaCL: FATAL ERROR: CL_INVALID_PROGRAM_EXECUTABLE. 我重新安装了viennacl,但它没有解决这个问题。那我该怎么办?

I also encountered the same problem. Has this problem been solved?

no, I've give up!I haven't install CUDA, so I can't run damo in GPU. Inaddition, I think this README not enough detial in the aspect of environmental configuration. Usually,I encountered fail to run successfully launch file, the most common reason is that there is a conflict between nodes or a node fails to run successfully (variable input error), the program itself is wrong (the wrong assignment of variables ).

Peter9606 commented 5 years ago

@hyuegithub To run demo in GPU, you don't have to install CUDA as clCaffe running on Intel integrated GPU. This project is flexible to have different 2D detection back-end, even your own solution can be easily integrated into this project. I'd like to have some try on integrating other popular 2D backend. So could you tell me what's your favorite 2D detection solution?

hyuegithub commented 5 years ago

@hyuegithub To run demo in GPU, you don't have to install CUDA as clCaffe running on Intel integrated GPU. This project is flexible to have different 2D detection back-end, even your own solution can be easily integrated into this project. I'd like to have some try on integrating other popular 2D backend. So could you tell me what's your favorite 2D detection solution?

mmdetection is seems pretty good for 2D detection.