MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / run

Function run

samples/python/tensorflow_object_detection_api/compare_tf.py:147–155  ·  view source on GitHub ↗
(batcher, inferer, framework, nms_threshold=None)

Source from the content-addressed store, hash-verified

145
146
147def run(batcher, inferer, framework, nms_threshold=None):
148 res_images = []
149 res_detections = []
150 for batch, images, scales in batcher.get_batch():
151 res_detections += inferer.infer(batch, scales, nms_threshold)
152 res_images += images
153 print("Processing {} / {} images ({})".format(batcher.image_index, batcher.num_images, framework), end="\r")
154 print()
155 return res_images, res_detections
156
157
158def parse_annotations(annotations_path, detection_type):

Callers 1

mainFunction · 0.70

Calls 3

printFunction · 0.85
get_batchMethod · 0.45
inferMethod · 0.45

Tested by

no test coverage detected