From 3a30c7d5810b3b600cbc91659ca36bf7b4936e90 Mon Sep 17 00:00:00 2001 From: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> Date: Wed, 5 Apr 2023 10:36:10 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Nikolaos Passalis --- .../src/opendr_perception/scripts/performance_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/opendr_ws/src/opendr_perception/scripts/performance_node.py b/projects/opendr_ws/src/opendr_perception/scripts/performance_node.py index 5a34cd7d6a..40d4918ce1 100644 --- a/projects/opendr_ws/src/opendr_perception/scripts/performance_node.py +++ b/projects/opendr_ws/src/opendr_perception/scripts/performance_node.py @@ -51,12 +51,12 @@ def callback(self, data): :type data: sensor_msgs.msg.Image """ fps = data.data - rospy.loginfo(f"Time per frame: {str(round(1.0 / fps, 4))} sec") + rospy.loginfo(f"Time per inference: {str(round(1.0 / fps, 4))} sec") while len(self.fps_window) < self.window_length: self.fps_window.append(fps) self.fps_window = self.fps_window[1:] self.fps_window.append(fps) - rospy.loginfo(f"Average FPS : {round(mean(self.fps_window), 2)}") # NOQA + rospy.loginfo(f"Average inferences per second : {round(mean(self.fps_window), 2)}") # NOQA def main():