ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

npscars's profile - activity

2019-10-21 02:04:39 -0500 received badge  Famous Question (source)
2019-10-20 12:22:50 -0500 marked best answer Why tensorflow python3 script runs slower in ROS than standalone?

Ubuntu 18.04 ROS Melodic Python 3.6.8 Tensorflow: 1.13.1 TensorRT: 5.1.5 NVIDIA: GTX1060 using Cudnn 7.6 and Cuda 10.0

When I run a object detection model developed in python using tensorflow framework in ros, the speed appears to be slower than if i run the same tensorflow model in pure python environment. Is this expected behaviour?

I tried tensorflow object detection model named "ssd_mobilenet_v2_coco_2018_03_29" python3 tensorflow_inference.py --> takes 16ms approx. rosrun inference_node inference.py --> takes 22ms approx

Just for information my catkin workspace is build with python3 too.

For example my model stats below python3 tensorflow_inference.py ---> takes 60ms approximately But rosrun inference_node inference.py and subscribing to an image broadcasted by a bag file --> takes 85ms approx.

This seems strange or I am missing some point.

2019-10-20 11:53:44 -0500 answered a question Why tensorflow python3 script runs slower in ROS than standalone?

I found out the reason why this was happening was because the image size input to python3 directly was a bit smaller tha

2019-10-20 11:51:37 -0500 received badge  Notable Question (source)
2019-08-02 12:14:01 -0500 commented question How to print variables on ROS using python?

Also have you tried following tutorial just as a sanity check as http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubsc

2019-07-31 10:37:42 -0500 received badge  Popular Question (source)
2019-07-29 19:04:37 -0500 answered a question How can I install ROS Melodic with Python3?

Maybe just create a seperate catkin workspace with python3 as shown in the following article: link text

2019-07-29 17:31:44 -0500 received badge  Supporter (source)
2019-07-29 14:18:20 -0500 asked a question Why tensorflow python3 script runs slower in ROS than standalone?

Why tensorflow python3 script runing slower in ROS than standalone? Ubuntu 18.04 ROS Melodic Python 3.6.8 Tensorflow: 1.