Using Road segmentation node ROS gets problems

asked 2020-06-22 23:39:13 -0500

N.N.Huy gravatar image

Hello everyone, i am trying to use the node in this git for road segmentation problem link text . To do this, i have created a node to take video in my computer to ROS ecosystem and published to topic "my_image_topic". Then the road_segmentation_node subscribe the topic to process the video. However, i am meeting this problem after running road_segmentation_node.

$ rosrun road_segmentation road_segmentation_node.py

<undefined>

2020-06-23 11:04:00.961936: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2020-06-23 11:04:00.984060: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2400000000 Hz 2020-06-23 11:04:00.984306: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55ab5dce47c0 executing computations on platform Host. Devices: 2020-06-23 11:04:00.984330: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): <undefined>, <undefined> 2020-06-23 11:04:01.277919: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile. Traceback (most recent call last): File "/home/huy/image_process_ws/src/ros-road-segmentation/road_segmentation/nodes/road_segmentation_node.py", line 38, in <module> semantic = model.infer([cv_bridge.imgmsg_to_cv2(on_image.last_image)])[0] File "/home/huy/image_process_ws/src/ros-road-segmentation/road_segmentation/nodes/models/mnv2_bdd100k_driveable_513/__init__.py", line 66, in infer feed_dict = { INPUT_TENSOR_NAME: images } File "/home/huy/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 950, in run run_metadata_ptr) File "/home/huy/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1173, in _run feed_dict_tensor, options, run_metadata) File "/home/huy/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1350, in _do_run run_metadata) File "/home/huy/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1370, in _do_call raise type(e)(node_def, op, message) tensorflow.python.framework.errors_impl.InvalidArgumentError: input image must be of non-zero size [[node resize/ResizeBilinear (defined at /image_process_ws/src/ros-road-segmentation/road_segmentation/nodes/models/mnv2_bdd100k_driveable_513/__init__.py:34) ]] Original stack trace for u'resize/ResizeBilinear': File "/image_process_ws/src/ros-road-segmentation/road_segmentation/nodes/road_segmentation_node.py", line 27, in <module> model = getattr(__import__('models', globals(), locals(), fromlist = [MODEL]), MODEL).Model() File "/image_process_ws/src/ros-road-segmentation/road_segmentation/nodes/models/mnv2_bdd100k_driveable_513/__init__.py", line 34, in __init__ tf.import_graph_def(self.graph_def, name='') File "/.local/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func return func(args, *kwargs) File "/.local/lib/python2.7/site-packages/tensorflow/python/framework/importer.py", line 443, in import_graph_def _ProcessNewOps(graph) File "/.local/lib/python2.7/site-packages/tensorflow/python/framework/importer.py", line 236, in _ProcessNewOps for new_op in graph._add_new_tf_operations(compute_devices=False): # pylint: disable=protected-access File "/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3751, in _add_new_tf_operations for c_op in c_api_util.new_tf_operations(self) File "/.local/lib ...

(more)
edit retag flag offensive close merge delete