src/tools/benchmark_tool/benchmark_tool/metric/kitti_3d_object_detection_metric.py
def compute_metric(self):
        """
        Start the computation of the metric.

        It uses the official C++ kitti sdk code for the computation, the code is wrapped into a
        Python module.

        @return: True on success, False on failure
        """
        # Remove kitti sdk files from output folder to prevent errors
        for key in self.OUTPUT_FILES_KITTIOBJEVAL:
            file_path = self._output_folder + \
                self.OUTPUT_FILES_KITTIOBJEVAL[key]
            if os.path.exists(file_path):
                os.remove(file_path)

        # Call kitti obj evaluation sdk
        if not kittiobjeval.eval(str(self._ground_truth_folder),
                                 str(self._result_folder),
                                 str(self._output_folder),
                                 False,    # Compute 2d obj detection metric
                                 False,    # Compute ground obj detection metric
                                 True,     # Compute 3d obj detection metric
                                 True,     # Output to stdout
                                 False     # Create plot of the results
                                 ):
            error(self.node, "Error computing Kitti results.")
            return False

        if not self._parse_result_file("car"):
            return False

        if not self._parse_result_file("pedestrian"):
            return False

        if not self._parse_result_file("cyclist"):
            return False

        return True

        Start the computation of the metric.

        It uses the official C++ kitti sdk code for the computation, the code is wrapped into a
        Python module.

        @return: True on success, False on failure
        
Start the computation of the metric.
It uses the official C++ kitti sdk code for the computation, the code is wrapped into a
Python module.
Start the computation of the metric . It uses the official C ++ kitti sdk code for the computation the code is wrapped into a Python module .
def compute_metric(self):
        for key in self.OUTPUT_FILES_KITTIOBJEVAL:
            file_path = self._output_folder + \
                self.OUTPUT_FILES_KITTIOBJEVAL[key]
            if os.path.exists(file_path):
                os.remove(file_path)
        if not kittiobjeval.eval(str(self._ground_truth_folder),
                                 str(self._result_folder),
                                 str(self._output_folder),
                                 False,    
                                 False,    
                                 True,     
                                 True,     
                                 False     
                                 ):
            error(self.node, "Error computing Kitti results.")
            return False
        if not self._parse_result_file("car"):
            return False
        if not self._parse_result_file("pedestrian"):
            return False
        if not self._parse_result_file("cyclist"):
            return False
        return True
def compute_metric ( self ) : for key in self . OUTPUT_FILES_KITTIOBJEVAL : file_path = self . _output_folder + self . OUTPUT_FILES_KITTIOBJEVAL [ key ] if os . path . exists ( file_path ) : os . remove ( file_path ) if not kittiobjeval . eval ( str ( self . _ground_truth_folder ) , str ( self . _result_folder ) , str ( self . _output_folder ) , False , False , True , True , False ) : error ( self . node , "Error computing Kitti results." ) return False if not self . _parse_result_file ( "car" ) : return False if not self . _parse_result_file ( "pedestrian" ) : return False if not self . _parse_result_file ( "cyclist" ) : return False return True
Start the computation of the metric.
Start the computation of the metric .
"""
        Start the computation of the metric.

        It uses the official C++ kitti sdk code for the computation, the code is wrapped into a
        Python module.

        @return: True on success, False on failure
        """ # Remove kitti sdk files from output folder to prevent errors # Call kitti obj evaluation sdk # Compute 2d obj detection metric # Compute ground obj detection metric # Compute 3d obj detection metric # Output to stdout # Create plot of the results
True on success, False on failure
True on success False on failure
self