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

Function run

samples/python/efficientdet/compare_tf.py:32–40  ·  view source on GitHub ↗
(batcher, inferer, framework, nms_threshold=None)

Source from the content-addressed store, hash-verified

30
31
32def run(batcher, inferer, framework, nms_threshold=None):
33 res_images = []
34 res_detections = []
35 for batch, images, scales in batcher.get_batch():
36 res_detections += inferer.process(batch, scales, nms_threshold)
37 res_images += images
38 print("Processing {} / {} images ({})".format(batcher.image_index, batcher.num_images, framework), end="\r")
39 print()
40 return res_images, res_detections
41
42
43def parse_annotations(annotations_path):

Callers 2

mainFunction · 0.70
runMethod · 0.50

Calls 3

printFunction · 0.85
get_batchMethod · 0.45
processMethod · 0.45

Tested by

no test coverage detected