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

Function main

samples/python/detectron2/create_onnx.py:524–529  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

522
523
524def main(args):
525 det2_gs = DET2GraphSurgeon(args.exported_onnx, args.det2_config, args.det2_weights)
526 det2_gs.update_preprocessor(args.batch_size)
527 anchors = det2_gs.get_anchors(args.sample_image)
528 det2_gs.process_graph(anchors, args.first_nms_threshold, args.second_nms_threshold)
529 det2_gs.save(args.onnx)
530
531
532if __name__ == "__main__":

Callers 1

create_onnx.pyFile · 0.70

Calls 5

update_preprocessorMethod · 0.95
get_anchorsMethod · 0.95
process_graphMethod · 0.95
saveMethod · 0.95
DET2GraphSurgeonClass · 0.85

Tested by

no test coverage detected